ScriptEvent:repair

From Mod Wiki

Parameters

integer count -- Amount of damage to repair.

Result

integer

Supported By

sdTransport

Comments

  • If the vehicle is in a state where it will not allow repairs, the result will be -1.
  • On network clients this will return 0.

Functionality

Attempts to repair the amount of damage specified, and returns how much was actually repaired.