-
Notifications
You must be signed in to change notification settings - Fork 15
fire
Fires a bullet
Attribute - label = STRING
Contents - direction?, speed?, (bullet | bulletRef)
Example
<fire> <direction type="absolute">270</direction> <speed>2</speed> <bulletRef label="rocket"/> </fire>
Fires a bullet to degrees at . The labeled fire element is referred by fireRef elements. If the direction is specified as aim, absolute, or relative, it will override the initial direction of the bullet element. If the direction is specified as a sequence, it will use the direction of the bullet element as the initial direction. If the both the direction elements are sequence, the initial direction of the bullet will be "aim" and it will use this dude's direction element.
If the speed is specified as absolute or relative, it will override the initial speed of the bullet element. If the speed is specified as a sequence, it will use the speed of the bullet element as the initial speed. If the both the speed elements are sequence, the initial speed of the bullet will be the speed of the parent bullet and it will use this dude's direction element.