ScriptEvent:launchMissileSimple

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

Parameters

entity owner -- Primary owner of the projectile.
entity owner2 -- Secondary owner of the projectile.
entity enemy -- Target of the projectile, for tracking projectiles.
integer projectileDef -- Index of the entityDef to use to spawn the entity on the server.
integer clientProjectileDef -- Index of the entityDef to use to spawn the entity on the client.
float spread -- Spread scale factor.
vector origin -- Position in world space to launch the projectile from.
vector velocity -- Initial velocity of the projectile in world space.

Result

entity

Supported By

idEntity

Comments

  • The result will be null if the projectileIndex is out of range, the projectile is hitscan, or this is a client.

Functionality

Launches a projectile and returns the entity.