GSC reference › Built-in
AllowDoubleJump()
Built-in (engine)
Server
Player Called on: player
Sets whether the player can double jump
Signature
<player> AllowDoubleJump(<on off>)
Called on an entity: player AllowDoubleJump(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| on off | Required | A boolean. true if the player can double jump, and false otherwise |
Example (from Treyarch's docs)
player AllowDoubleJump( false )
Real uses in BO3's scripts
Called 16 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_altbody_beast.gsc, line 383
self allowdoublejump(0); - scripts/zm/zm_castle.gsc, line 738
self allowdoublejump(0); - scripts/zm/zm_castle_low_grav.gsc, line 355
self allowdoublejump(1); - scripts/zm/zm_genesis.gsc, line 565
self allowdoublejump(0); - scripts/zm/zm_genesis_arena.gsc, line 1787
self allowdoublejump(1);
Related built-ins
- IsDoubleJumping()Returns true if the player is double jumping.
- SetDoubleJumpEnergy()Sets a double jump energy amount on the player
- ResetDoubleJumpRechargeTime()Resets the double jump recharge timer as if the player had just used it
- IsPlayerDoubleJumping()Returns 1 if the player is currently double jumping (boosting)
- AllowJump()Sets whether the player can jump
- JumpButtonPressed()Check if the player is pressing the 'jump' button.
- DoubleXPTimerFired()Used to decrement consumable double xp promotions
- IsPlayerJumping()Returns 1 if the player is currently jumping
- SetJumpHeight()Set the global jump height of all players.
- 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
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).