JensDerZocker Posted January 8, 2019 Share Posted January 8, 2019 Good day dear people I wanted to ask how it is possible to check if a player is near another player I would appreciate an answer Thank you regards Link to comment Share on other sites More sharing options...
Dernert Posted January 9, 2019 Share Posted January 9, 2019 15 Seconds on Wiki https://wiki.rage.mp/index.php?title=Entity::getNearestPlayerTo https://wiki.rage.mp/index.php?title=Object::isAnyObjectNearPoint https://wiki.rage.mp/index.php?title=Object::isObjectNearPoint Only searched for "near" (clientside) 2 Link to comment Share on other sites More sharing options...
JensDerZocker Posted January 9, 2019 Author Share Posted January 9, 2019 vor 1 Stunde schrieb Dernert: https://wiki.rage.mp/index.php?title=Entity::getNearestPlayerTo yes, what kind of things does he need? So how position x of the player? can you show me an example? Link to comment Share on other sites More sharing options...
Dernert Posted January 11, 2019 Share Posted January 11, 2019 (edited) Return Value is Player. So, try to store it in a variable/array and print it out on Console or as Ingame Chat Message. Maybe its only the Playername and not the Position, idk. Edited January 11, 2019 by Dernert Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now