Index
Effects

CreateMissile

CreateMissile(<-worldPos <-rotation <-targetUnit) ->missileUID

Description

Creates a missile (same as from a missile launcher). The worldPosition is where the missile should be created, it is a Vector3. The rotation specifies the initial direction the missile is facing. It is a vector3 specifying the rotation, in degrees around the x axis, y axis, and z axis. The targetUnit is a UID of the target unit. This is typically a spore or air sac, but it doesn't have to be.

Examples

CreateMissile(GetUnitPosition(self) V3(-90 0 0) <-targetUnit) ->missile

Index