Raised This Month: $ Target: $400
 0% 

Find nearest entity of type X.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 07-18-2013 , 11:11   Find nearest entity of type X.
Reply With Quote #1

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?
__________________
Kia is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode