Squirrel/Server/Functions/Players/RemoveFromVehicle
From Liberty Unleashed Wiki
(Difference between revisions)
Jack Bauer (Talk | contribs) (Created page with '{{Squirrel/Title|RemoveFromVehicle}} == Arguments == * ''' player ''' - The player to be forced out of the vehicle. == Example == <code lang="squirrel"> function onPlayerComma…') |
Jack Bauer (Talk | contribs) (→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
Arguments
- player - The player to be forced out of the vehicle.
Example
function onPlayerCommand( player, cmd, text ) else if (cmd == "out" ) { local plr = player; plr.RemoveFromVehicle( ); }
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.