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

To Create Block

Status
Not open for further replies.
Level 5
Joined
Jul 30, 2012
Messages
93
Hi,

i wanna create someting in front of target unit.(it can be dota's "Ice Shards" of Tuskarr but mine is quicker.)Enemy heroes cannot go unless he go around.So, can someone tell me what's the unit features and trigger wrongs ?

  • Dungeon Monument
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Dungeon Monument-[Q]
    • Actions
      • Unit - Create 5 Dungeon Monument for Neutral Passive at ((Target point of ability being cast) offset by (Angle from (Position of (Casting unit)) to (Target point of ability being cast)) towards 0.00 degrees) facing (Facing of (Target unit of ability being cast)) degrees
      • Unit - Add a 4.00 second Generic expiration timer to (Last created unit)
 
Level 16
Joined
Dec 15, 2011
Messages
1,423
Doodads with pathing blocker property to be exact. Anyhow, you are doing it wrong here. You put the angle in the offset input and the result would be pretty bad.

To create a block, first you need an arrayed doodad var. Create a loop, in the loop create a block with an angle value relating to the integer loop index, cache it to the doodad var with the loop index as array index. Repeat for other blocks

I presume this is non-MUI so you can use wait. When the wait is up, loop again and clear the doodads in the array.
 
Level 28
Joined
Sep 26, 2009
Messages
2,520
Also, you create 5 Dungeon Monuments; however only the 5th unit is last created unit, so only the 5th monument will die after 4 seconds via expiration timer.
If you want to create 5 units and do something with them, you should learn to use the action "Loop (integer) from 1 to x"
 
Status
Not open for further replies.
Top