[Trigger] ? Reverse Sliding ?

Status
Not open for further replies.
Level 4
Joined
May 3, 2008
Messages
51
Hiho, does anyone know how to create a Trigger with reverse sliding?

Like, if i click left, the escaper turns right, and if i click down, the escaper turns up?

I have an idea, maybe with an additional trigger like:

  • Events
  • A unit is ordered to a point.
  • Conditions
  • Actions
  • Set Position of Unit = TempLoc
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • 'IF'-Conditions
  • Terrain Type at TempLoc Equal To Slide Terrain
    • 'THEN'-Aktionen
  • Set Facing = (Target Point of Issued Order) to (Target Point of Issued Order offset by 1.00 towards 180.00 degrees))
    • 'ELSE'-Aktionen
And in the Slide Trigger i use Facing as facing ^^

Thanks for coming answers.
___________
Elchkopf
 
Easy, here is your trigger, tested and working. There is one little problem, however. If you order your unit to Attack-move, it won't work so it only works with move but it orders a unit to attack-move. This is set due to trigger's conflict with itself when the same orders are used(trigger activates itself and crashes wc3). Aside from that, it works perfectly.
 

Attachments

  • Reverse movement.jpg
    Reverse movement.jpg
    45.3 KB · Views: 210
Easy, here is your trigger, tested and working. There is one little problem, however. If you order your unit to Attack-move, it won't work so it only works with move but it orders a unit to attack-move. This is set due to trigger's conflict with itself when the same orders are used(trigger activates itself and crashes wc3). Aside from that, it works perfectly.
He doesn't want the unit being ordered to move in the opposite direction, he wants it to slide in the opposite direction as clicked. But yes, in principle:

  • Set Facing=(Unit offset by (Distance between CurrentUnitPos and TargetPos) towards (Angle from Targetpos to CurrentUnitPos) degrees)
 
GhostWolf.

First, we're all going to die.

Second, he want if he issues an order up. The hero will go down.
 
Status
Not open for further replies.
Back
Top