Posts: 44
Threads: 10
Joined: Apr 2009
Reputation:
0
Hi, I was wondering how I can make it so when someone goes to the entrance of a building, they just press "ENTER" or "F" to go inside, can someone help me please?
Posts: 1,293
Threads: 6
Joined: Jul 2008
Reputation:
0
In OnPlayerKeyStateXChange you need to check that newkeys-oldkeys = (whatever number enter or f are (check the wiki)).
Then you need IsPlayerInArea or PlayerToPoint to check if they're in the right location.