"Pick random unit mathcing condition" function que
I have a spell that when activated, every 1/2 second a dummy unit casts something on a random enemy unit around the caster (range 700). Only, it doesn't work. I wonder what's wrong.
I started with: Event: Unit starts the effect of ability, Action: Turn on trigger (effect trigger).
there may be an error with the other trigger. Can you post it? also im not sure if world editor accepts .5 as an integer, it freaked out when i tried to do that once.
Okay here's the trigger (the effect one; all the variables are in the other trigger).
Events Time- Every 0.50 seconds of game time
Actions set Shadowtarget= (random unit from(units within 700.00 of (position of Angelus) matching (((matching unit) belongs to an enemy of (Owner of Angelus)) Equal to True) Wait 0.20 seconds Unit - Order fieldofshadowunit to Neutral - Firebolt shadowtarget
Does the unit you want to cast firebolt have that ability? Part of your problem could lie there, additionally your dummy units ability might not have the range to target the unit. Iv found the best way to fix a glitch is to take things one step at a time. Try this: -Check the Ability (firebolts) cast range -Check to make sure the ability can target heros -Try adding a buff to see if the ability is casting and possibly not doing damage -Make sure your dummy unit has firebolt -Make sure the dummy unit is within the camra bounds -Check to see if your problem is with your triggers (place your dummy unit on the map where he would appear and try to cast the ability yourself manually)