• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Spell Request

Status
Not open for further replies.
Level 39
Joined
Feb 27, 2007
Messages
5,010
Whose units should become invisible? All of them on the map, or just in an area? For how long? Should there be a fade time?

Simplest would be:
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) equal to YourAbility
  • Actions
    • Custom script: set bj_wantDestroyGroup = true
    • Unit Group - Pick all units in (units owned by (Owner of (triggering unit)) matching ((matching unit is a structure) equal to true) and do (Actions)
      • Loop - actions
        • Unit - Add (Permanent Invisibility) to (Picked unit)
 
Level 12
Joined
Sep 11, 2011
Messages
1,176
I seem unable to make the triggers can u make a test map

This is a test map, the footman hold the ability to make all buildings invisible. one ability for the enemy, and one for the friendly.
The only problem is buildings will only look invisible to the enemy, but not you.
This is because buildings don't have transparency. You can set all the buildings into a unit to make it appear invisible to you, but that might mess up a lot of things in your map.
 

Attachments

  • All Invisible.w3x
    18.2 KB · Views: 39
Status
Not open for further replies.
Top