• 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.

[vJASS] Selectable invisible unit with normal portrait

Status
Not open for further replies.
Level 7
Joined
Apr 5, 2011
Messages
245
I need to make unit invisible but selectable and with normal portrait.
For example, if I scale it to 0, it would be invisible and with normal portrait but not selectable.
For example, if I make it 100% transparent, it would be invisible and selectable but with empty portrait.
How can I get 3?
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
no idea what thats supposed to mean.
He means he wants all 3 conditions to be met (selectable, portrait and invisible).

You might want to try a negative fly-height (this has the same problem as a tiny scale though: you have to box-select it).
I don't know what you want to use this for, but you can also use a dummy (so there are actually 2 units: one with a portrait and one who is 100% transparent).
 
He means he wants all 3 conditions to be met (selectable, portrait and invisible).

You might want to try a negative fly-height (this has the same problem as a tiny scale though: you have to box-select it).
I don't know what you want to use this for, but you can also use a dummy (so there are actually 2 units: one with a portrait and one who is 100% transparent).

lol oops forgot to mention about the dummy unit lol
 
You can abuse the way object editor handles unit models to achieve what you want.

Basicly, you import a unit model with a material alpha value of 0. This allows the unit to be clicked, but not being seen.
Then when importing, you rename the model path so that it matches the WC3 model's path (if you use a default WC3 unit model).
You will now have an "invisible", but clickable model with a visible portrait.

If you use a custom model, all you need to do is also importing the portrait model with the correct path (modelpath_portrait.mdx)
 
You can abuse the way object editor handles unit models to achieve what you want.

Basicly, you import a unit model with a material alpha value of 0. This allows the unit to be clicked, but not being seen.
Then when importing, you rename the model path so that it matches the WC3 model's path (if you use a default WC3 unit model).
You will now have an "invisible", but clickable model with a visible portrait.

If you use a custom model, all you need to do is also importing the portrait model with the correct path (modelpath_portrait.mdx)

thats a cool idea. not sure which would be easier doing this or using a dummy unit. any idea ?
 
Are you sere, does it work?
I wasted much time today trying to make negative fly-height. Did not get it.(
Have you tried changing the value of the units "Movement - Height Minimum" to the negative value that you want?
This could be the reason why you couldn't set the units fly height to a negative value as all ground units default min fly height is set to 0.
__
But yeh importing the same model with 100% transparency would be the better solution what you want I would guess..
 
Status
Not open for further replies.
Top