YesNoOk
avatar

TargetFacing (SCTRL) (Read 3522 times)

Started by JustNoPoint, October 31, 2015, 02:18:59 pm
Share this topic:
TargetFacing (SCTRL)
New #1  October 31, 2015, 02:18:59 pm
  • ******
    • www.justnopoint.com/
Turns all targets to face a specified direction relative to the player.

Required parameters:
value = facing_val (int)
If facing_val is positive, all targets will turn to face the same direction as the player. If facing_val is negative, all targets will turn to face the opposite direction as the player.

Optional parameters:
ID = target_id (int)
Specifies the desired target ID to affect. Only targets with this target ID will be affected. Defaults to -1 (affects all targets.)

Example:
Code:
;Fighter Factory 3
[State 0, TargetFacing]
type = TargetFacing
trigger1 =
value = 1
ID = -1
;ignorehitpause =
;persistent =

Related SCTRL:
BindToTarget (SCTRL)
TargetBind (SCTRL)
TargetDrop (SCTRL)
TargetLifeAdd (SCTRL)
TargetPowerAdd (SCTRL)
TargetState (SCTRL)
TargetVelAdd (SCTRL)
TargetVelSet (SCTRL)

Related Triggers:
NumTarget (Triggers)
Last Edit: November 25, 2015, 04:51:16 am by Odb718