Vehicle.Fix

From Liberty Unleashed Wiki
Revision as of 02:14, 29 September 2010 by Juppi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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