• 🏆 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!

[JASS] Unselectable

Status
Not open for further replies.
Level 3
Joined
May 2, 2008
Messages
41
Hello
How do I make units unselectable, but still attackable(with a trigger), and while they still keep their collision thingy(so they can't walk through trees and buildings)?
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
Anyone else?

What do you want to do ? Telling a hint about what you need may help.

You want the unit to be unselectable but can be attacked, how could you attack something that can't be selected ?

<< ADDED >>

You may make the selection scale small but at the same time make a trigger that unselects a unit once it is selected.

The short and the simplest trigger
  • Unselectable
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
      • (Owner of (Triggering unit)) Not equal to Player 1 (Red)
    • Actions
      • Selection - Clear selection for Player 1 (Red)
 
Status
Not open for further replies.
Top