FlightControl-Master / MOOSE

Mission Object Oriented Scripting Environment (MOOSE) for lua mission scripting design in DCS World
http://flightcontrol-master.github.io/MOOSE/
GNU General Public License v3.0
291 stars 98 forks source link

PLAYERTASK Added helper functions #2187

Closed shaji-Dev closed 2 weeks ago

shaji-Dev commented 2 weeks ago

[Added] Constructor PLAYERTASK:NewFromTarget that determines task type based on the target object [Added] PLAYERTASK:_GetTaskTypeForTarget to get the task type based on target description [Added] PLAYERTASKCONTROLLER.Scores for RECON, ESCORT and CAP [Added] PLAYERTASK:AddStaticObjectSuccessCondition task success condition for dead STATIC, SET_STATIC, SCENERY or SET_SCENERY targets [Added] PLAYERTASK:AddReconSuccessCondition for AUFTRAG.Type.RECON tasks for when a client is at a certain LOS distance from the target

shaji-Dev commented 2 weeks ago

I didn't add PLAYERTASK:AddReconSuccessCondition(minDistance) to the constructor because the dev might want to change the minDistance parameter for it and so to avoid multiple redundant conditions if added manually.