Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Find nearest vehicle?
Re: Find nearest vehicle? [message #446685 is a reply to message #446681] Sun, 08 May 2011 04:06 Go to previous messageGo to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma:
General (1 Star)
robbyke wrote on Sun, 08 May 2011 11:25

It didnt work because it does find the nearest vehicle wich is, if your in a vehicle, yourself

reborn wrote on Sun, 08 May 2011 12:02

if (o && Is_Vehicle(o) && o != sourceObject)


Right! I did not account for that Blush
Fixed the code above to inlude that check Thumbs Up


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: attach vehicle
Next Topic: modifying weapons&ammos with serverside scripts.dll
Goto Forum:
  


Current Time: Wed Jan 15 08:37:05 MST 2025

Total time taken to generate the page: 0.00750 seconds