• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[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: 213
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