News:

MFG's Character of the Month: October 2026 Voting

Main Menu

TargetFacing (SCTRL)

Started by JustNoPoint, October 31, 2015, 02:18:59 PM

Previous topic - Next topic

JustNoPoint

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:

;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)