User Tools

Site Tools


4rpl:commands:createmissile

This is an old revision of the document!


Index
Unit

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

4rpl/commands/createmissile.1624285690.txt.gz · Last modified: 2021/06/21 10:28 by Karsten75