View Single Post
  #6  
Old 09-12-2011, 09:11 AM
salmo salmo is offline
Approved Member
 
Join Date: Mar 2011
Posts: 632
Default

Quote:
Originally Posted by fearlessfrog View Post
The API is part of the beta patch.
Thankyou fearlessfrog. Maybe the routine could be reworked so that instead of the pilot calling an ambulance via after-crash menu, an ambulance could arrive "automatically".

Pseudocode:
1. On player crash-landing
2. Is crash-landing within home base radius?
3. If so, cycle through vehicle objects and see if there is an ambulance (&/or fire truck)
4. If an ambulance exists, Is the ambulance within the same home base radius as the crash landing?
5. If so, then send the ambulance to the crash site (calculate waypoints).
Reply With Quote