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

Give unit texture

Status
Not open for further replies.
Level 12
Joined
Mar 13, 2012
Messages
1,121
Hi Guys,

is it possible to add a texture to a unit ingame?
Lets say I have a unit which is just blank and I want to add different textures to it..

I have good editor knowledge so dont hesitate, if it somehow is possible I just need a hint

thx :)
 
Level 12
Joined
Mar 13, 2012
Messages
1,121
Hm Im aware it answers my question but I thought there is some direct method. With this I need as many destructables as I want variations.

Still thanks man!!

e: Can we somehow create the same unit with different textures at least^^?
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
Can we somehow create the same unit with different textures at least^^?

Well you could ofcourse duplicate units and then change it's texture inside the object editor.
Then all you need to do is replace the unit whenever you need to with the one that has the corresponding texture.
It's easy to do this through triggers.
 
Level 12
Joined
Mar 13, 2012
Messages
1,121
With this I need as many destructables units as I want variations.

I have very restricted capacity so I thought this would somehow be possible with just one unit or destructable.
Actually I have just different textures which are all normal icons of units or items which shall be used on a flat model to appear ingame.

Still thanks for trying to help me, I give you +rep, whatever this is :)
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
In StarCraft II this is supported nativly so you might wish to consider looking into developing for that game.

In WC3 your best bet would be to parallel import the unit model with different material paths and create multiple unit object types which each have a different model.
 
Level 12
Joined
Mar 13, 2012
Messages
1,121
In WC3 your best bet would be to parallel import the unit model with different material paths and create multiple unit object types which each have a different model.

Can you please specify the bold parts? Or are you basically just saying what Im doint at the moment^^? Im having one model and many destructables all using the model but with different textures.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
With destructables it is possible, but not units. Yes you can use the tree ability to stain the same texture as the destructable but that is rather messy and even the discover stated it has limitations.

different material paths
WC3 model data specifies the load path for the texture under their material data. You will need to change this if you want unit models to use a different texture.
multiple unit object types
Copy the unit type entry in the object editor multiple times and change the model used for each one.
 
Status
Not open for further replies.
Top