Skip to content
dmanning23 edited this page Jun 9, 2013 · 1 revision

Specifies a direction

Attribute - type = (aim | absolute | relative | sequence)

Contents - NUMBER

Specifies the direction in degrees. The default value is "aim".

"aim" type means that NUMBER is relative to the direction to my ship (The direction to my ship is 0, clockwise).

"absolute" type means that NUMBER is the absolute value (12 o'clock is 0, clockwise).

"relative" type means that NUMBER is relative to the direction of this bullet (0 means that the direction of this fire and the direction of the bullet are the same). If this in a changeDirection element, the provided value is the total relative direction change to make.

In case of the type is "sequence":

If this element is included in changeDirection element, the provided value is added to the direction every frame.

If this element is included in a fire, fireref, or bullet element, the provided value is relative to the direction of the previous fire (0 means that the direction of this fire and the direction of the previous fire are the same).

Clone this wiki locally