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

[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