Scripting Doors


(Sir*John*) #1

How do i scrip a door so its get open?
:???:


(RayBan) #2

do you mean have some other entity/script open it physically? or is the door locked and you want to script it so it gets unlocked?


(Sir*John*) #3

So i can open them


(RayBan) #4

well, you could give the door a targetname and alertentity it in the script when you want to open it.


(d3coy) #5

you need to be more specific… if your talking about making a basic door that you open using the activate button in your game controls then you creat your door… create a thin brush on the edge you want the door to rotate on, then texture the thin brush with a common/orgin texture… select both brushes and hit “N”. This brings the entity menu… look through the list of entity types till you find func_door_rotate then double click it… read through the details under the list to configure your door more to the way you want it to be

If you are wanting a door that opens to the side then use the same method but select func_door instead.

If you are wanting a door that is triggered by a switch of some sort, then wait a few days and ill release my prefab i made for one of my maps.