GSC reference › Built-in
AreControlsFrozen()
Built-in (engine)
Server
Player Called on: player
Returns true if the controls are frozen
Signature
<player> AreControlsFrozen()
Called on an entity: player AreControlsFrozen(...)
Example (from Treyarch's docs)
if( player AreControlsFrozen() )
Real uses in BO3's scripts
Called 1 time in the decompiled scripts. A few, zombies first:
- scripts/cp/doa/_doa_dev.gsc, line 395
if(guy arecontrolsfrozen() == 0)
Related built-ins
- FreezeControls()Blocks or unblocks control input from this player
- FreezeControlsAllowLook()Blocks or unblocks control input from this player, but allows the player to look around
- 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
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).