Vehicle.Fix

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

This Vehicle class method function fixes the visible and engine damage of the given vehicle.

Syntax

  1. bool Vehicle.Fix()

Arguments

  • none

Example

If the player is in a vehicle, this command will fix it for them.

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

Notes

The function Player.Vehicle and call onPlayerCommand were used in in this example. More info about them in the corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox