I have a parent class called 'wall' and in it I have some child classes(door, window, ...).
I want to set the parent and it's child transparency to 50% if the player move past the door ( so it can see behind the wall and behind the door, windows).
How can I do that in script?
↧