The Mugen Fighters Guild

Help => M.U.G.E.N Development Help => MUGEN Class => Topic started by: JustNoPoint on October 27, 2015, 07:28:37 pm

Title: BindToTarget (SCTRL)
Post by: JustNoPoint on October 27, 2015, 07:28:37 pm
Binds the player to a specified position relative to the specified target.

Required parameters:
none

Optional parameters:

time = bind_time (int)
Specify number of ticks that this binding should be effective. Defaults to 1.

ID = bind_id (int)
Specifies ID number of the target to bind to. Defaults to -1 (pick any target).

pos = pos_x (float), pos_y (float), postype (string)
pos_x and pos_y specify the offsets (from the bind point) to bind to. The bind point defaults to the target's axis. If postype is "Foot", then the bind point is the target's axis. If postype is "Mid", then the bind point is the target's midsection. If postype is "Head", then the bind point is the target's head. In the latter two cases, the bind point is determined from the values of the head.pos and mid.pos parameters in the target's CNS file. The bind point is not guaranteed to match up with the target's head or midsection.

Example:
Code:
;Fighter Factory 3
[State 0, BindToTarget]
type = BindToTarget
;trigger1 =
;time = 1
;ID = -1
;pos = 0,0,"Foot";"Mid","Head"
;ignorehitpause =
;persistent =

Related SCTRL: 
TargetBind (SCTRL) (http://mugenguild.com/forum/topics/targetbind-sctrl-170204.0.html)
TargetDrop (SCTRL) (http://mugenguild.com/forum/topics/targetdrop-sctrl-170205.0.html)
TargetFacing (SCTRL) (http://mugenguild.com/forum/topics/targetfacing-sctrl-170206.0.html)
TargetLifeAdd (SCTRL) (http://mugenguild.com/forum/topics/targetlifeadd-sctrl-169891.0.html)
TargetPowerAdd (SCTRL) (http://mugenguild.com/forum/topics/targetpoweradd-sctrl-169929.0.html)
TargetState (SCTRL) (http://mugenguild.com/forum/topics/targetstate-sctrl-169309.0.html)
TargetVelAdd (SCTRL) (http://mugenguild.com/forum/topics/targetveladd-sctrl-170207.0.html)
TargetVelSet (SCTRL) (http://mugenguild.com/forum/topics/targetvelset-sctrl-170208.0.html)

Related Triggers:
NumTarget (Triggers) (http://mugenguild.com/forum/topics/numtarget-triggers-169464.0.html)
 (http://)
Title: Re: BindToTarget (SCTRL)
Post by: XGargoyle on October 23, 2016, 03:58:15 pm
The template for this sctrl in Fighter Factory and Elecbyte's original docs is wrong. The correct syntax is (notice the postype):
Code:
[State 0, BindToTarget]
type = BindToTarget
;trigger1 =
;time = 1
;ID = -1
;pos = 0,0
postype = "Foot","Mid","Head"
;ignorehitpause =
;persistent =