GSC reference › Built-in
AllowStand()
Built-in (engine)
Server
Player Called on: player
Sets whether the player can stand up
Signature
<player> AllowStand(<player stand>)
Called on an entity: player AllowStand(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| player stand | Required | A boolean. true if the player can stand, and false otherwise |
Example (from Treyarch's docs)
player AllowStand( false )
Real uses in BO3's scripts
Called 37 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm.gsc, line 5086
self allowstand(0); - scripts/zm/_zm_ai_astro.gsc, line 551
player allowstand(1); - scripts/zm/_zm_altbody_beast.gsc, line 195
self allowstand(1); - scripts/zm/_zm_turned.gsc, line 161
self allowstand(1); - scripts/zm/zm_castle_flingers.gsc, line 481
self allowstand(1);
Related built-ins
- UndoLastStand()Undo the last stand for the client
- VisionSetLastStand()Sets players' laststand vision.
- InLastStand()Check the last stand state for the client
- VisionSetLastStandLerp()Sets players' last stand vision.
- GetCurrentWeapon()Gets the current player weapon
- SetLUIMenuData()Sets a data value for a given lui menu, the data name has to be precached and the value as well, if its a string.
- GiveWeapon()Give a weapon to the player
- HasPerk()Test if player has a perk
- HasWeapon()Returns true if the player has the given weapon
- TakeWeapon()Take the weapon
- ButtonPressed()Check if the host is pressing the button/key, "BUTTON_A", "BUTTON_B", "K", etc...
- GetPlayerAngles()Get the player view angles
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).