• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How can you make a unit have collision, but unclickable?

Status
Not open for further replies.
Hmm i could. But ive seen it done before differently.

Oh i just had an idea, i could make a unit with no model, no shadow etc, but make it have collision. then put the unit WITH the model that i want, have locust, on top of the unit with no model. Will this work? Or can you still select units that have no model.
 
lol wut. Are you sure my way doesnt work? :O

I mean have a unit with no model, place it on top of the unit with a model & locust. So it will look like the unit with locust has collision.
 
lol. So what i would i really need to do? I dont get it. Its for a spell. Its like a trap thing but i dont want the walls to be selectable
 
  • Events:
    • Unit enters (Playable map area)
  • Conditions:
    • Unit type of (Entering Unit) equal to (Ismo)
  • Actions:
    • Set IntegerVar = (IntegerVar + 1)
    • Set (Entering Unit)'s Custom value = (IntegerVar)
    • Add (Entering Unit) to UnitGroupVar
    • Create Destructible at (Position of (Entering Unit))
    • Set DestructibleArray[IntegerVar] = Last Created Destructible
  • Events:
    • Every 0.10 seconds
  • Conditions:
  • Actions:
    • Pick every unit in UnitGroupVar and do multiple actions:
      • If, Then, Else
        • If - Conditions:
          • (Picked Unit) is Dead equal to True
        • Then:
          • Kill (DestructibleArray[(Custom value of (Picked Unit))]
        • Else:
 
^why would u want that? :D obviously you can still select it.

my guess is to create a destructible at the units position when he enters the map, store it in his custom value (or do some jass stuff) and when hes dead kill the destructible also.

Hmm i could. But ive seen it done before differently.

Oh i just had an idea, i could make a unit with no model, no shadow etc, but make it have collision. then put the unit WITH the model that i want, have locust, on top of the unit with no model. Will this work? Or can you still select units that have no model.


Both this 2 ways are true and all other will cause MANY troubles!!! i means that u could still quick select the unit and order it to move and make lag because it check 10 times in a second this is worst way that you have chosen please use one of the mantioned in that post.
 
Status
Not open for further replies.
Back
Top