mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
OPS Zone
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
-- @field #number Ndead Number of target elements/units that are dead (destroyed or despawned).
|
||||
-- @field #table elements Table of target elements/units.
|
||||
-- @field #table casualties Table of dead element names.
|
||||
-- @field #number prio Priority.
|
||||
-- @field #number importance Importance
|
||||
-- @extends Core.Fsm#FSM
|
||||
|
||||
--- **It is far more important to be able to hit the target than it is to haggle over who makes a weapon or who pulls a trigger** -- Dwight D. Eisenhower
|
||||
@@ -287,6 +289,24 @@ function TARGET:AddObject(Object)
|
||||
|
||||
end
|
||||
|
||||
--- Set priority of the target.
|
||||
-- @param #TARGET self
|
||||
-- @param #number Priority Priority of the target. Default 50.
|
||||
-- @return #TARGET self
|
||||
function TARGET:SetPriority(Priority)
|
||||
self.prio=Priority or 50
|
||||
return self
|
||||
end
|
||||
|
||||
--- Set importance of the target.
|
||||
-- @param #TARGET self
|
||||
-- @param #number Priority Priority of the target. Default `nil`.
|
||||
-- @return #TARGET self
|
||||
function TARGET:SetImportance(Importance)
|
||||
self.importance=Importance
|
||||
return self
|
||||
end
|
||||
|
||||
--- Check if TARGET is alive.
|
||||
-- @param #TARGET self
|
||||
-- @return #boolean If true, target is alive.
|
||||
|
||||
Reference in New Issue
Block a user