• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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
 
Level 15
Joined
Jan 16, 2008
Messages
1,244
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: 160
Level 7
Joined
Jul 20, 2008
Messages
377
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)
 
Level 17
Joined
May 6, 2008
Messages
1,598
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.
Top