GSC reference › Built-in
AllowProne()
Built-in (engine)
Server
Player Called on: player
Sets whether the player can go prone
Signature
<player> AllowProne(<player prone>)
Called on an entity: player AllowProne(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| player prone | Required | A boolean. true if the player can go prone, and false otherwise |
Example (from Treyarch's docs)
player AllowProne( false )
Real uses in BO3's scripts
Called 79 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm.gsc, line 5088
self allowprone(1); - scripts/zm/_zm_ai_astro.gsc, line 486
self allowprone(1); - scripts/zm/_zm_ai_mechz_claw.gsc, line 577
self.e_grabbed allowprone(1); - scripts/zm/_zm_altbody_beast.gsc, line 196
self allowprone(0); - scripts/zm/_zm_devgui.gsc, line 1129
prone = self allowprone(0);
Related built-ins
- CheckProne()Returns true when a character can go prone at the specified position.
- 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
- SwitchToWeapon()Switch to a different weapon or cycle weapons if no weapon is given
- SetWeaponAmmoClip()Set the weapon's ammo
- FreezeControls()Blocks or unblocks control input from this player
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).