ScriptEvent:repair

From Mod Wiki
Revision as of 11:36, 5 November 2007 by Wizz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.