Help with comp using abilities

Scotty

New Member
Reaction score
4
Hi, im working on a frostwyrm boss unit for my map, basically:

he's in the air and out of reach,

you need to use catapults to ground him and attack him,

he uses various ability while in the sky,

to make it so that he's "out of reach" i made all my units unable to hit air, even if ranged, problem is that if he doesent get hit he won't use his spells, ie:he just comes after you and auto attacks, the moment i allow my units to hit him he works fine, anyway to resolve this?

also:

while he is "grounded" i want him paused, but it's not working, any idea for the code that would wrok, what i tried was (basically):
Event:
Catapult begins casting an ability

condition:
Ability being cast = Ensnare

action:

pause (target of ability being cast)
wait 30 seconds (<----time that he is snared)
unpause (target of ability being cast)

+rep fro those who can help :)
 

Emu.Man00

New Member
Reaction score
41
Event:
Catapult starts the effect of an ability

condition:
Ability being cast = Ensnare

action:

set tempUnit = target unit of ability being cast
pause tempUnit
wait 30 seconds (<----time that he is snared)
unpause tempUnit
================================
Or you can use a trigger that periodically checks if unit has buff "ensnare"
E: every 0.5 seconds
C:
A:
if- (unit) has buff ensnare
then- pause (unit)
else- unpause (unit)
 

Scotty

New Member
Reaction score
4
so the how would i edit/make the AI work in way i mentioned above?

ie: air units using spells on ground units, even if ground units are unable to fight back
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top