ScriptEvent:launchMissileSimple
From Mod Wiki
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
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.