• 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.

Problem with Ice Sliding trigger

Status
Not open for further replies.
Level 3
Joined
Jul 14, 2008
Messages
41
Hey everyone.
I have a problem with an Ice Slide trigger I have made (well, copied) from a thread here in the Hive.
The trigger is this: (sorry, my warcraft 3 is in spanish, so some things may be in spanish)
  • Set Group
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Group1 = (Units in Region 293 <gen>)
      • Unit Group - Pick every unit in Group1 and do (Unit Group - Add (Triggering unit) to Slider)
      • Custom script: call DestroyGroup(udg_Group1)
  • Slide Normal
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in Slider and do (Actions)
        • Loop - Actions
          • Set Point1 = (Position of (Picked unit))
          • Set Point2 = (Point1 offset by 20.00 towards (Facing of (Picked unit)) degrees)
          • If ((Terrain type at Point1) Igual a Icecrown Glacier - Ice) then do (Unit - Move (Picked unit) instantly to Point2) else do (Do nothing)
          • Custom script: call RemoveLocation(udg_Point1)
          • Custom script: call RemoveLocation(udg_Point2)
But the trigger does... nothing. What is the problem with it? :/

PS: Sorry if I missed something, im in a hurry.
 
Last edited:
Level 4
Joined
Jun 8, 2007
Messages
89
Correct me if I'm wrong, but isn't the variable Group1 is unnecessary, since you immediately fill another unit group (Slider) to be the exact same thing? If so, then why don't you just use Slider in the first place.

*Edit* (removed my incorrect information, hehe)

Yeah, so he posted just before me, but yeah. Hes right... lol
 
Level 3
Joined
Jul 14, 2008
Messages
41
Marcelo Hossomi said:
Just for you to know, this will only work for the units that were already in the region 293. Other units will not slide.

Thank you, and yes, thats where units spawn.


Unit Group - Pick every unit in Group1 and do (Unit Group - Add (Triggering unit) to Slider)

Should be Picked Unit.

Thank you very much.
 
Status
Not open for further replies.
Top