Player.RemoveFromVehicle

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function removes player from a vehicle.

Arguments

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

Example

This command will force yourself out of the vehicle.

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

Notes

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

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox