LSPD Door buttons
#1

hi,
in my lspd hq i have doors blocking the lobby
how can i make like a fire alarm object next to the door on the wall
and when i press it it will open the door.
only for cops not civilians.
and on the other side, of the lobby it has another button for everyone.
so jailed ppl can get out. instead of asking police..

ive seen this on other servers so i no it can be done...

thanks
Reply
#2

button outside:
OnPlayerKeyStateChange
IsPlayerInArea[ofbutton1] && "IsCop"
ApplyAnimation(cardswipe)
MoveObject

button inside:
OnPlayerKeyStateChange
IsPlayerInArea[ofbutton2]
ApplyAnimation(cardswipe)
MoveObject
Reply
#3

Quote:
Originally Posted by °ғαιιοцт°
button outside:
OnPlayerKeyStateChange
IsPlayerInArea[ofbutton1] && "IsCop"
ApplyAnimation(cardswipe)
MoveObject

button inside:
OnPlayerKeyStateChange
IsPlayerInArea[ofbutton2]
ApplyAnimation(cardswipe)
MoveObject
Instead of IsPlayerInArea can't you use PlayerToPoint?
Reply
#4

Quote:
Originally Posted by riding-bmx
Quote:
Originally Posted by °ғαιιοцт°
button outside:
OnPlayerKeyStateChange
IsPlayerInArea[ofbutton1] && "IsCop"
ApplyAnimation(cardswipe)
MoveObject

button inside:
OnPlayerKeyStateChange
IsPlayerInArea[ofbutton2]
ApplyAnimation(cardswipe)
MoveObject
Instead of IsPlayerInArea can't you use PlayerToPoint?
yes that's better
Reply
#5

I don't understand can you give more details please?
Reply
#6

Anyone know about that? Can you give me your scripts?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)