Find nearest entity of type X.
Hello everybody,
For my Racers Mod I'd like to add checkpoints. So you add "spawn points" for the checkpoints (laser beam sprite) and on touch one CP will be passed. Example (before Touch) : Checkpoints : 1 / 16 (after Touch) : Checkpoints : 2 / 16 Now I want to show the distance to the next Checkpoint in the HUD, but how do I get the nearest entity (name : "checkpoint") and it's distance from player? |
| All times are GMT -4. The time now is 06:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.