• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

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

Status
Not open for further replies.
Level 8
Joined
Aug 1, 2008
Messages
420
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.
 
Level 8
Joined
Aug 1, 2008
Messages
420
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.
 
Level 8
Joined
Aug 1, 2008
Messages
420
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
 
Level 25
Joined
Oct 18, 2008
Messages
945
  • 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.
Top