Squirrel/Server/Functions/Players/RemoveFromVehicle

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|RemoveFromVehicle}} == Arguments == * ''' player ''' - The player to be forced out of the vehicle. == Example == <code lang="squirrel"> function onPlayerComma…')
 
(Example)
Line 17: Line 17:
  
 
This command will force yourself out of the vehicle.
 
This command will force yourself out of the vehicle.
 +
 +
== Notes ==
 +
 +
The call [[Squirrel/Server/Events/Player/onPlayerCommand|onPlayerCommand]] was used in in this example. More info about this in the corresponding page.

Revision as of 23:32, 19 October 2010

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events


Arguments

  • player - The player to be forced out of the vehicle.

Example

  1.  
  2. function onPlayerCommand( player, cmd, text )
  3. else if (cmd == "out" )
  4. {
  5. local plr = player;
  6.  
  7. plr.RemoveFromVehicle( );
  8. }
  9.  

This command will force yourself out of the vehicle.

Notes

The call onPlayerCommand was used in in this example. More info about this in the corresponding page.

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox