ScriptEvent:createProjectile

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

Parameters

integer index -- Clip index.

Result

entity

Supported By

idWeapon

Comments

  • If the clip index is out of range, or the clip does not contain any projectile info, no projectile will be spawned, and the result will be null.

Functionality

Creates a projectile using projectile information from the specified clip. This entity will be return, and the weapon will keep track of it, and use as the first projectile for the next call to launchProjectiles. The projectile will remain hiden until then, so scripts can use this to modify parameters on the projectile prior to launch.