• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

How to use a .blp as a unit model

Status
Not open for further replies.
Level 14
Joined
Jul 1, 2008
Messages
1,314
Hey guys,

i want to create a custom game interface, and therefore i recently read many forum threads, and in one of them, i saw guys writing about a possibility to "use a whatever.blp as a units model".

Is there a possibility to give an unit an inamge as model?

(I want to know this, because i would like every player to be able to create its interface on the real map, and therefore only this player should be able to see his interface...)

Thanks for any answers in advance :D
 
It's very simple. Yust download custom model at this post.

Here is the test map.

How to use
Create custom destructible
Remove variations
Change ''Replaceable Texture Path'' to path of icon
Uncheck ''Has Lightweight Model''

To use it as unit, you will have to use periodic trigger that moves destructible to position of unit.

Screenshot:
55630d1243510217-icon-model-request-screen.jpg
 
I think, i didnt explain well enough.
I meant, only Player X should see the image, when he opens his interface. But i never saw a possibility, to show a destructable to only one player...
Is there a way like this?
 
If you were to base it off of a unit you could try using the shade's invisibility ability... Would that work for you?
 
You can show/hide destructibles.

If you want to show destructible to specific player, use GetLocalPlayer function

Note that Player 1 (Red) is Player(0)
Note that Player 2 (Blue) is Player(1)
Note that Player 3 (Teal) is Player(2)
And so on...

  • Custom script: if GetLocalPlayer() == Player(0) then
  • Destructible - Show (Last created destructible)
  • Custom script: endif
 
Thanks Guys for your answers.
Thanks Child of Bodom again for your detailed help, but i already know this.

It works, and im currently using this, but its very! too complicated, to be a good system, because i have to show and hide about 200 icons ingame for 4 players...

Thats why i wanted to use units with the Ghost Ability, as-ALPHA- said. And this is, why i asked, if it was possible to give a unit the model of a texture, i mean the same way you do it with destructables to create these icon models...

Thanks for trying to help me :)
 
Status
Not open for further replies.
Back
Top