• 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] Replaceable Texture File

Status
Not open for further replies.
Level 19
Joined
Oct 12, 2007
Messages
1,821
Hey there,

I was wondering if there's a way to change a destructable's Replaceable Texture File by code. I'd like to use this for icons in an interface system.
This would save me A LOT of time because I wouldn't have to create custom destructable's all the time. I could get a blank icon model and attach those textures on top of it by the code.

I heard there was something like the Pickup Tree ability from the Mountain Giant that changed the textures of the model so maybe it is only possible with units or maybe it's just not possible at all.

I was wondering if anyone here tried this out or has experience with it.

(ps. I don't know if this is trigger/coding related or weu help zone related.)
 
Level 19
Joined
Oct 12, 2007
Messages
1,821

Hmm I see, so for that method I need a destructable with the desired skin which doesn't make it faster for me. I'd like to have one destructable or unit and I want to be able to make that destructable/unit get a different skin with one function that requires the skin's path, not a destructable's type id.
If this is the only way to do this then it just won't work for me.
 
Status
Not open for further replies.
Top