Enter Buildings
#1

Can I use the F key instead of typing /enter ?
Reply
#2

Could be scripted. All you have to do is detecting when a player presses F ('KEY_SECONDARY_ATTACK' I guess) using OnPlayerKeyStateChange then check if he is in the range of that building using IsPlayerInRangeOfPoint then set their interior, position, etc depending on the building.
Reply
#3

But you can change the key, also.

You can add keys to new functions.
Reply
#4

You can add keys like,

pawn Код:
'KEY_LEFT_ALT'
'KEY_CROUCH'
'KEY_Y'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)