• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

spell problem

Status
Not open for further replies.
Level 22
Joined
Jan 10, 2005
Messages
3,426
I have got this trigger:

Events
Conditions
Actions
Unit - Create 1 Tree Killer for (Owner of Kalaya) at (Position of Kalaya) facing (Position of (Triggering unit))
Set Tree_Target[1] = (Random destructible in (Rect centered at (Position of Kalaya) with size (1000.00, 1000.00)) matching ((((Destructible-type of (Matching destructible)) Equal to Ashenvale Tree Wall) or ((Destructible-type of (Matching destructible)) Equal to Ashenvale Canopy
Unit - Order (Last created unit) to Attack Tree_Target[1]
Set TreeKillerAttackPoint[1] = (Position of Tree_Target[1])
Advanced - Wait for event: A destructable dies in (Rect centered at (Position of Kalaya) with size (1001.00, 1001.00)). Check every 0.01 seconds.
Special Effect - Create a special effect at TreeKillerAttackPoint[1] using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
Unit - Create 1 Treant for (Owner of Kalaya) at TreeKillerAttackPoint[1] facing (Position of Kalaya)
Unit - Order (Last created unit) to Attack-Move To (Position of Kalaya)

works perfectly, only one problem, i use it a couple times after eachother (every 2 sec) i tried the every X sec event, i also tried running a trigger every 2 sec, but the problem is, some times it Doesnt create trees, for example it doesnt create trees for 6 sec, but then the 8 sec it creates 4. some1 knows how to solve this?
 
Status
Not open for further replies.
Top