• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Invisibility

Status
Not open for further replies.
Level 7
Joined
Aug 30, 2008
Messages
347
Question:
How do you make a unit be invisible while attacking, when a skill is activated
for example mirror image or warstomp, or any other one click abilities,

that after then spell is done channeling, it gives the hero permanent invisibility even when attacking.

i tried doing it so that after ability is cast, wait 2 seconds give perma invis with 0 transition or durations.

though i read on a site that doing this will cause leaks and is inefficient. so pls reply! :thumbs_up:
 
Level 20
Joined
Oct 21, 2006
Messages
3,231
Use permanent visibilty and set its casting time to 0.00.

Use wind walk with 0.01 second invisiblity as the base spell. Make a tigger that adds the permanent invisiblity to the casting unit when the wind walk is being casted. You can also base it on berserk or divine shield. These spells have no cast time.

And about the removing of the permanent invisiblity. Do the following: Wait X seconds, Remove permanent invisiblity from triggering unit. Its important that you use triggering unit, not casting unit.
 
Level 7
Joined
Aug 30, 2008
Messages
347
those have no leaks? or any bugs?

like for example the hero dies in the process and the ability is given, when the hero revives he will not have the skill?

ok ill try it.
 
Status
Not open for further replies.
Top