Jump to content

Ejected Pilot Static Object is John Doe

Recommended Posts

When a pilot ejects, a static object is created at the position where the parachute goes down. This static object can be retrieved by the initiator of the rather new S_EVENT_LANDING_AFTER_EJECTION event.


However, important scripting engine functions like :getName() or :getCoalition() fail when applied to the static object representing the pilot.

2021-05-01 20:13:21.291 INFO    SCRIPTING: Trying to get the name via Event.initiator:getName()
2021-05-01 20:13:21.291 ERROR   SCRIPTING: Mission script error: [string "C:\Users\frank\AppData\Local\Temp\DCS.openbeta\/~mis00003FEF.lua"]:38: Unit doesn't exist


The :getName() function is important for identification and for house keeping. The :getCoalition() function is obviously important to know who would send a rescue team to simulate a SAR mission. Other functions like getPosition() and :destroy() work like expected.


Simple example mission attached. Setup is a Hornet with zero fuel so the pilot ejects right after mission start and the track file is kept short.


Hope this helps.


PS: I would prefer a normal unit as ejected pilot (not a static object). This would allow to pick up the guy with a helo.


  • Like 1

A warrior's mission is to foster the success of others.

i7-8700K | Asus RTX 2080Ti Strix OC | 32 GB Ram 3200 MHz DDR-4 | Asus Maximus Hero X | Samung EVO 960 Pro SSD | VKB Gunfighter Pro | MFG Crosswind | Rift S

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

  • 2 months later...

It would be great, if the ejected pilot stays alive after landing. And it would be even better, if there would by type a new of task for helicopters - SAR and if the pilots are automaticaly tasked to embark such helicopter ....

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...