ScriptEvent:getVehicleWeapon

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

Parameters

integer index -- Index of the weapon to look up.

Result

object

Supported By

sdTransport

Comments

  • If the index is out of range the result will be null.
  • Vehicle weapons are of type sdVehicleWeapon.

Functionality

Returns the script object of the weapon at the specified index.