Squirrel/Client/Functions/Players/Frozen

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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:

  1. bool LocalPlayer.Frozen

Setting the frozen state:

  1. 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.

  1.  
  2. function onClientCommand( cmd, text )
  3. {
  4. if ( cmd == "Freeze" )
  5. {
  6.  
  7. }
  8. return 1;
  9. }
  10.  
Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox