Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
192
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.  
  3.  
  4. CommandCenter = COMMANDCENTER:New( HQ, "Easy Range" ) --Declare ER CommandCenter
  5.  
  6.  
  7. FAC = SET_GROUP:New():FilterPrefixes( "ReconEasyRange" ):FilterStart() --Declare forward air controllers
  8.  
  9.  
  10. RecceDetection = DETECTION_AREAS:New( "ReconEasyRange", 1000 ) --Declare detection area and grouping for FAC Group
  11.  
  12.  
  13. AttackSet = SET_GROUP:New():FilterCoalitions( "blue" ):FilterStart() --Declare which role are able to use designation menus
  14.  
  15.  
  16. RecceDesignation = DESIGNATE:New( CommandCenter, RecceDetection, AttackSet, EROVL ) --EROVL limits designation function to players on the Overlord mission
  17. RecceDesignation:SetThreatLevelPrioritization( true ) --QOL shit
  18. RecceDesignation:SetLaserCodes( 1188, 1288, 1388 ) --These codes will be used with AutoLase Target
  19. RecceDesignation:AddMenuLaserCode( 1488, "Lase target with d%" )
  20. RecceDesignation:AddMenuLaserCode( 1588, "Lase target with d%" )
  21. RecceDesignation:AddMenuLaserCode( 1688, "Lase target with d%" )
  22. RecceDesignation:AddMenuLaserCode( 1788, "Lase target with d%" )
  23.  
  24.  
  25. local EROVL = MISSION:New( CommandCenter, "Overlord", "Primary", "Attack Detect Mission Briefing", coalition.side.BLUE ) -- Create the Mission.
  26.  
  27.  
  28. TaskDispatcher = TASK_A2G_DISPATCHER:New( EROVL, AttackSet, RecceDetection ) -- 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.
  29.  
  30.  
  31. MissileTrainer = MISSILETRAINER:New( 100, "Missiles will be destroyed for when they reach your plane." )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement