GSC reference › Built-in
AllowSlide()
Built-in (engine)
Server
Player Called on: player
Sets whether the player can slide
Signature
<player> AllowSlide(<on off>)
Called on an entity: player AllowSlide(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| on off | Required | A boolean. true if the player can slide, and false otherwise |
Example (from Treyarch's docs)
player AllowSlide( false )
Real uses in BO3's scripts
Called 8 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_altbody_beast.gsc, line 200
self allowslide(0); - scripts/zm/zm_temple_traps.gsc, line 1519
player allowslide(0); - scripts/zm/zm_tomb_utility.gsc, line 693
self allowslide(0); - scripts/mp/gametypes/prop.gsc, line 1113
self allowslide(0); - scripts/cp/doa/_doa_player_utility.gsc, line 842
self allowslide(0);
Related built-ins
- IsOnSlide()Return true if the player is in the player movement slide.
- MoveSlide()Launches the entity in the given velocity.
- StopMoveSlide()Stops the movement caused by MoveSlide().
- 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
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).