Search and Rescue Script
Posted: Sun Feb 07, 2016 4:39 pm
Ok, This script will auto create a wreck or liferaft. It will give you 20 minutes to get within 20 miles of the Pilot. If you don't get there in time their family will be informed.
If I could identify the dbid of the unit in the area it would be betterso I can check it is SAR capable. At the moment it is ANY Player aircraft that gets there that rescues them.
You can only rescue one pilot at a time
-- Make Sure there is
-- 1 A Side called DippyLogic
-- 2 4 Reference Points in DippyLogic side called DIPPYSAR1,DIPPYSAR2,DIPPYSAR3,DIPPYSAR4
-- 3 An Event with Trigger and Action for "Unit Destroyed" calling lua script Dippy_EventUnitDestroyed()
-- 4 An Event with Trigger and Action for "Unit Enters Area" calling lua script Dippy_EventUnitEntersArea()
-- 5 Run This Script "DownedPilot.lua"
If I could identify the dbid of the unit in the area it would be betterso I can check it is SAR capable. At the moment it is ANY Player aircraft that gets there that rescues them.
You can only rescue one pilot at a time
-- Make Sure there is
-- 1 A Side called DippyLogic
-- 2 4 Reference Points in DippyLogic side called DIPPYSAR1,DIPPYSAR2,DIPPYSAR3,DIPPYSAR4
-- 3 An Event with Trigger and Action for "Unit Destroyed" calling lua script Dippy_EventUnitDestroyed()
-- 4 An Event with Trigger and Action for "Unit Enters Area" calling lua script Dippy_EventUnitEntersArea()
-- 5 Run This Script "DownedPilot.lua"