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

disable attacks?

Status
Not open for further replies.
Level 6
Joined
Mar 29, 2004
Messages
222
hey, i need some triggering help!
i want to make it so when a unit is invisible, (permanent invisibilty, to be precise) it does not attack when a unit when it comes in range...similar to windwalk, where the bm is invisible, but does not attack anything in range. Anyone know how to do this?
 
Level 10
Joined
Jul 2, 2004
Messages
690
i think its a warcraft thing. because wind walk gives a buff but permanent invisibility doesnt.
 
Level 6
Joined
Sep 17, 2005
Messages
276
hm... the solution might be that u use a triggers and set the aquisition range of the unit to 0.

something like:

Code:
EVENT:  Unit - a unit beginns casting an ability [your invisibility]

COND: - casting unit is ..... [the units u want to change]
             - ability being cast equal to [your invisibility]

ACTION:  unit - set acquisition range of casting unit to 0

EDITED:
or simply: if its permanent as u said - just set the acuisition range of the unit to 0 in object editor.

Try it - i never did - hope this helps you ^^
 
Level 6
Joined
Sep 17, 2005
Messages
276
hm... then you could try this:

you can copy your unit which becomes invisible in
object editor (to distingish them do another editor
prefix) and this copied unit gets no attacks (disable
both). And then kinda that:

Code:
Unit - A unit Begins casting an ability
(Ability being cast) Equal to *your invisibility*
Unit - Replace (Casting unit) with a *copied unit* using The old unit's life and mana

But this only works if u have no triggers or vars on the old unit....

Another idea:

Perhaps u can create a new spell based on windwalk
only with 0 in duration (for endless dur)....

hm, if this doesnt work, i have no other ideas yet :(

OH and btw if u know sth about save triggers... watch
this topic plz :!:
http://www.wc3sear.ch/viewtopic.php?p=90408#90408
 
Status
Not open for further replies.
Top