YesNoOk
avatar

TargetVelSet (SCTRL) (Read 3503 times)

Started by JustNoPoint, October 31, 2015, 02:21:45 pm
Share this topic:
TargetVelSet (SCTRL)
New #1  October 31, 2015, 02:21:45 pm
  • ******
    • www.justnopoint.com/
Sets all targets' velocities to the specified values. A positive x velocity is in the direction that the player is facing, while a positive y velocity is downward on the screen.

Required parameters:
none

Optional parameters:
x = x_value (float)
Specifies the value to set the x-velocity of the target to

y = y_value (float)
Specifies the value to set the y-velocity of the target to.

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, TargetVelSet]
type = TargetVelSet
trigger1 =
x = 0
y = 0
ID = -1
;ignorehitpause =
;persistent =

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

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