mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#PLAYERTASKCONTROLLER
* Added `AddAgentSet()`
This commit is contained in:
parent
0823eb1ed0
commit
0ec039bb39
@ -96,7 +96,7 @@ PLAYERTASK = {
|
||||
|
||||
--- PLAYERTASK class version.
|
||||
-- @field #string version
|
||||
PLAYERTASK.version="0.1.12"
|
||||
PLAYERTASK.version="0.1.14"
|
||||
|
||||
--- Generic task condition.
|
||||
-- @type PLAYERTASK.Condition
|
||||
@ -3526,6 +3526,23 @@ function PLAYERTASKCONTROLLER:AddAgent(Recce)
|
||||
return self
|
||||
end
|
||||
|
||||
--- [User] Add agent SET_GROUP to INTEL detection. You need to set up detection with @{#PLAYERTASKCONTROLLER.SetupIntel}() **before** using this.
|
||||
-- @param #PLAYERTASKCONTROLLER self
|
||||
-- @param Core.Set#SET_GROUP RecceSet SET_GROUP of agents.
|
||||
-- @return #PLAYERTASKCONTROLLER self
|
||||
function PLAYERTASKCONTROLLER:AddAgentSet(RecceSet)
|
||||
self:T(self.lid.."AddAgentSet")
|
||||
if self.Intel then
|
||||
local Set = RecceSet:GetAliveSet()
|
||||
for _,_Recce in pairs(Set) do
|
||||
self.Intel:AddAgent(_Recce)
|
||||
end
|
||||
else
|
||||
self:E(self.lid.."*****NO detection has been set up (yet)!")
|
||||
end
|
||||
return self
|
||||
end
|
||||
|
||||
--- [User] Set up detection of STATIC objects. You need to set up detection with @{#PLAYERTASKCONTROLLER.SetupIntel}() **before** using this.
|
||||
-- @param #PLAYERTASKCONTROLLER self
|
||||
-- @param #boolean OnOff Set to `true`for on and `false`for off.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user