General > Developers Corner
[Prop Hunt] Prevent player going to xx xx coordinates
Avoid:
--- Quote from: BelgiumWarGod on December 07, 2014, 07:22:40 PM ---Hi,
How do i get the current coordinates of a player in ulx ?
I want to make a addon that prevent you from going to a specific coordinate(s).
So i need to know how you get the coordinate(s) of a player ?
Example : Prop wants to go behind dumpster but gets pushed back for going to that coordinate.
Excusses of this is very simple but i just started messing around in ulx so thanks for helping
--- End quote ---
Hello there,
I can think of two methods:
* Make a SENT and check if the ply is touching it via ENT:Touch, then teleport/push out the player.
* Use FindInBox in a think hookI personally would go with the first method of doing so, as I do not like putting unnecessary things inside the Think hook, hopefully I was able to guide you in the right direction.
Avoid
Navigation
[0] Message Index
[*] Previous page
Go to full version