Squirrel/Client/Functions/Players/Frozen
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with "This function allows you to freeze a player. You can also get the player's frozen state. == Syntax == Returning the frozen state: <code>bool LocalPlayer.Frozen</code> Sett...") |
(→Arguments) |
||
Line 12: | Line 12: | ||
* '''frozen''' - A boolean representing if the player is frozen or not ( true for frozen, false for not frozen ). | * '''frozen''' - A boolean representing if the player is frozen or not ( true for frozen, false for not frozen ). | ||
+ | |||
+ | == Example == | ||
+ | |||
+ | This example command Freeze The player. | ||
+ | |||
+ | <code lang="squirrel"> | ||
+ | function onClientCommand( cmd, text ) | ||
+ | { | ||
+ | if ( cmd == "Freeze" ) | ||
+ | { | ||
+ | |||
+ | } | ||
+ | |||
+ | return 1; | ||
+ | } | ||
+ | </code> |
Revision as of 14:38, 10 August 2013
This function allows you to freeze a player. You can also get the player's frozen state.
Syntax
Returning the frozen state:
bool LocalPlayer.Frozen
Setting the frozen state:
LocalPlayer.Frozen = bool frozen
Arguments
- frozen - A boolean representing if the player is frozen or not ( true for frozen, false for not frozen ).
Example
This example command Freeze The player.
function onClientCommand( cmd, text ) { if ( cmd == "Freeze" ) { } return 1; }