Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.59 KB | None | 0 0
  1. HQ = GROUP:FindByName( "EasyRangeHQ" ) --Declare HQ unit
  2. CommandCenter = COMMANDCENTER:New( HQ, "Easy Range" ) --Declare ER CommandCenter
  3.  
  4. EROVL = MISSION:New( CommandCenter, "Overlord", "Primary", "Attack and destroy ground targets at Easy Range", coalition.side.BLUE ) -- Create the Mission.
  5.  
  6. FAC = SET_GROUP:New():FilterPrefixes( "ReconEasyRange" ):FilterStart() --Declare forward air controllers
  7. Detection = DETECTION_AREAS:New( FAC, 1000 ) --Declare detection area and grouping for FAC Group
  8.  
  9. AttackSet = SET_GROUP:New():FilterPrefixes( "Player"):FilterCoalitions( "blue" ):FilterStart() --Declare which role are able to use designation menus
  10.  
  11. RecceDesignation = DESIGNATE:New( CommandCenter, Detection, AttackSet, EROVL ) --EROVL limits designation function to players on the Overlord mission
  12. RecceDesignation:SetThreatLevelPrioritization( true ) --QOL shit
  13. RecceDesignation:SetLaserCodes( 1188, 1288, 1388 ) --These codes will be used with AutoLase Target
  14. RecceDesignation:AddMenuLaserCode( 1488, "Lase target with d%" )
  15. RecceDesignation:AddMenuLaserCode( 1588, "Lase target with d%" )
  16. RecceDesignation:AddMenuLaserCode( 1688, "Lase target with d%" )
  17. RecceDesignation:AddMenuLaserCode( 1788, "Lase target with d%" )
  18.  
  19.  
  20. TaskDispatcher = TASK_A2G_DISPATCHER:New( EROVL, AttackSet, Detection ) -- We assign the TaskDispatcher under Mission. The AttackSet will engage the enemy and will recieve the dispatched Tasks. The DetectionAreas will report any detected enemies to the TaskDispatcher.
  21.  
  22.  
  23. MissileTrainer = MISSILETRAINER:New( 100, "Missiles will be destroyed for when they reach your plane." )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement