HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Seethrough Roofs

11-14-2005, 06:37 PM#1
9398hrb
Can you make it so that when a unit enters a building, the doodads/destrucables used for the roofs become transparent? If not, can you remove/replace them completely when a unit enters/leaves. But preferably I would want them to tint, so you still no they are there and not just dissapeared.
Tx
11-14-2005, 07:18 PM#2
Tim.
Yes. You can give the roof its own model, and then use the function Set UnitVertexColor() with a GetLocalPlayer() check so that the roof appears semi-transparent to the player inside the building.
11-15-2005, 12:19 AM#3
9398hrb
I don't know how to use jass . How do you refer to the roof doodads/units?

function SetUnitVertexColor takes unit?, 255, 255, 255, 50 returns nothing

endfunction
[b]

I have no idea.
Plus, what would be a good value of tint?
11-15-2005, 02:05 PM#4
iNfraNe
its possible in gui to, but only for all players. Use the animation - set vertex color and the roof MUST be a unit. then do 100% 100% 100% color with.. well.. 40% transparency?
11-15-2005, 02:33 PM#5
Tim.
Nah, 60%. In the GUI 100% is invisible.
11-15-2005, 05:38 PM#6
9398hrb
Do the roof tiles have to be units instead of doodads or destrucables? Would that mean I have to give them 'locust' ability and set unit height etc?
11-15-2005, 05:43 PM#7
Tim.
Quote:
Originally Posted by toot
The roof MUST be a unit.

Answer your question? Yes give it Locust and set the height.