- Joined
- Mar 20, 2008
- Messages
- 485
Been working at this for a while now and i can't get it to work.. my unit rotates but the target doesn't rotate with it.. is there something wrong with my script?
-
Grapple
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Grapple Swing
-
-
Actions
-
Set GrappleCaster[(Player number of (Owner of (Casting unit)))] = (Casting unit)
-
Set GrappleTarget[(Player number of (Owner of (Target unit of ability being cast)))] = (Target unit of ability being cast)
-
Unit - Move GrappleTarget[(Player number of (Owner of (Target unit of ability being cast)))] instantly to ((Position of GrappleCaster[(Player number of (Owner of (Casting unit)))]) offset by 500.00 towards (Facing of GrappleCaster[(Player number of (Owner of (Casting unit)))]) degrees), facing (Position of GrappleCaster[(Player number of (Owner of (Casting unit)))])
-
Unit - Pause GrappleTarget[(Player number of (Owner of (Target unit of ability being cast)))]
-
Trigger - Turn on Spin <gen>
-
Wait 5.00 seconds
-
Trigger - Turn off Spin <gen>
-
Unit - Unpause GrappleTarget[(Player number of (Owner of (Target unit of ability being cast)))]
-
-
-
Spin
-
Events
-
Time - Every 0.25 seconds of game time
-
-
Conditions
-
Actions
-
Unit - Move GrappleTarget[(Player number of (Owner of (Target unit of ability being cast)))] instantly to ((Position of GrappleCaster[(Player number of (Owner of (Casting unit)))]) offset by 500.00 towards ((Facing of GrappleCaster[(Player number of (Owner of (Casting unit)))]) + 18.00) degrees), facing ((Facing of GrappleCaster[(Player number of (Owner of (Casting unit)))]) - 180.00) degrees
-
Unit - Make GrappleCaster[(Player number of (Owner of (Casting unit)))] face ((Facing of GrappleCaster[(Player number of (Owner of (Casting unit)))]) + 18.00) over 0.25 seconds
-
-