| 11-14-2005, 06:37 PM | #1 |
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 |
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 |
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 |
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 |
Nah, 60%. In the GUI 100% is invisible. |
| 11-15-2005, 05:38 PM | #6 |
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 | |
Quote:
Answer your question? Yes give it Locust and set the height. |
