How to detect if a player is in range of a object?
#10

Quote:
Originally Posted by rangerxxll
Посмотреть сообщение
I'm not really understanding your above post. Could you elaborate with a example?
You can use GetObjectPos (i'll use the native functions) to get the exact object position for the desired id. Then you can proceed to check if the player is near that position with IsPlayerInRangeOfPoint or even GetPlayerDistanceFromPoint (not recommended)

The resources taken on this would be WAY less than having the streamer check constantly if the player is in an area, as you see, you would be checking this once - when the player types the command.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)