Team only doors
Posted: Mon Oct 02, 2006 7:36 am
I would like a couple of doors that only the axis can use and I know they
will need to be scripted.
In radiant I have an origin, brush for the door that is a script object
called axis_door and a trigger multiple called Axis_door_trigger
Am I on the right lines with the below?
I know the syntax is incorrect at the moment, I just wanted to know if the steps used were correct.
Thanks
will need to be scripted.
In radiant I have an origin, brush for the door that is a script object
called axis_door and a trigger multiple called Axis_door_trigger
Am I on the right lines with the below?
I know the syntax is incorrect at the moment, I just wanted to know if the steps used were correct.
Thanks
Code: Select all
Axis_door:
Axis_door_trigger waittil trigger
local.player = parm.other
if (local.player.dmteam == "axis")
{
rotate $axis_door 90 // to open the door
playsound door open
wait 10
playsound door_close
rotate $axis_door back -90 //to close the door
}
else
{
print "Only the Axis can use this door!"
Playsound door_locked
}
end