ckfinite -> RE: Lua Question (5/26/2016 9:39:11 PM)
|
Sure. You just add a "Unit Destroyed" trigger, and then have something like the following inside it: local unit = ScenEdit_UnitX() ScenEdit_AddUnit({ ... pilot information ..., latitude = unit.latitude, longitude = unit.longitude}) When the unit gets shot down, it'll call that trigger and add the pilot in. Remember to replace the "... pilot information ..." with something meaningful. CSAR scripts are considerably more annoying to write. Let me know when you get to that.
|
|
|
|