Squirrel/Client/Functions/Players/Frozen
From Liberty Unleashed Wiki
(Difference between revisions)
(→Example) |
(→Example) |
||
Line 24: | Line 24: | ||
if ( cmd == "Freeze" ) | if ( cmd == "Freeze" ) | ||
{ | { | ||
− | player. = true; | + | player.Frozen = true; |
} | } | ||
Latest revision as of 14:40, 10 August 2013
This function allows you to freeze a player. You can also get the player's frozen state.
[edit] Syntax
Returning the frozen state:
bool LocalPlayer.Frozen
Setting the frozen state:
LocalPlayer.Frozen = bool frozen
[edit] Arguments
- frozen - A boolean representing if the player is frozen or not ( true for frozen, false for not frozen ).
[edit] Example
This example command Freeze The player.
player <- FindLocalPlayer(); function onClientCommand( cmd, text ) { if ( cmd == "Freeze" ) { player.Frozen = true; } return 1; }