[{"data":1,"prerenderedAt":203},["ShallowReactive",2],{"content-query-60nRYiJWyB":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":197,"_id":198,"_source":199,"_file":200,"_stem":201,"_extension":202},"/client/task/attack","task",false,"","FORGE - Attack Task","mdi:cog-outline",{"type":11,"children":12,"toc":187},"root",[13,22,29,35,40,45,50,56,63,92,104,110,127,136,142],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"attack-task-module",[19],{"type":20,"value":21},"text","Attack Task Module",{"type":14,"tag":23,"props":24,"children":26},"h2",{"id":25},"description",[27],{"type":20,"value":28},"Description",{"type":14,"tag":30,"props":31,"children":32},"p",{},[33],{"type":20,"value":34},"This module adds support for Attack Tasks/Missions.",{"type":14,"tag":30,"props":36,"children":37},{},[38],{"type":20,"value":39},"The mission maker must define target units, the framework will monitor the status of those units.",{"type":14,"tag":30,"props":41,"children":42},{},[43],{"type":20,"value":44},"A threshold must be set, specifying the given amount of targets that have to be eliminated in order to complete the task.",{"type":14,"tag":30,"props":46,"children":47},{},[48],{"type":20,"value":49},"The module can also trigger mission complete or mission fail.",{"type":14,"tag":23,"props":51,"children":53},{"id":52},"usage",[54],{"type":20,"value":55},"Usage",{"type":14,"tag":57,"props":58,"children":60},"h3",{"id":59},"setup-targets",[61],{"type":20,"value":62},"Setup Target(s)",{"type":14,"tag":64,"props":65,"children":66},"ol",{},[67,73,78],{"type":14,"tag":68,"props":69,"children":70},"li",{},[71],{"type":20,"value":72},"Setup the Attack Task set",{"type":14,"tag":68,"props":74,"children":75},{},[76],{"type":20,"value":77},"Place down the target unit(s)",{"type":14,"tag":68,"props":79,"children":80},{},[81,83,90],{"type":20,"value":82},"Call the ",{"type":14,"tag":84,"props":85,"children":87},"code",{"className":86},[],[88],{"type":20,"value":89},"forge_client_task_fnc_makeTarget",{"type":20,"value":91}," function within the targets' init field that links the unit to the Attack Task",{"type":14,"tag":93,"props":94,"children":99},"pre",{"className":95,"code":97,"language":98,"meta":7},[96],"language-sqf","// Arguments:\n//  0: OBJECT - The AI unit or object\n//  1: STRING - The ID of the task\n\n// Example:\n    [this, \"task_name\"] call forge_client_task_fnc_makeTarget;\n","sqf",[100],{"type":14,"tag":84,"props":101,"children":102},{"__ignoreMap":7},[103],{"type":20,"value":97},{"type":14,"tag":57,"props":105,"children":107},{"id":106},"register-task",[108],{"type":20,"value":109},"Register Task",{"type":14,"tag":64,"props":111,"children":113},{"start":112},4,[114],{"type":14,"tag":68,"props":115,"children":116},{},[117,119,125],{"type":20,"value":118},"Register the Attack Task by calling the ",{"type":14,"tag":84,"props":120,"children":122},{"className":121},[],[123],{"type":20,"value":124},"forge_client_task_fnc_attack",{"type":20,"value":126}," function within the init field of the task",{"type":14,"tag":93,"props":128,"children":131},{"className":129,"code":130,"language":98,"meta":7},[96],"// Arguments:\n//  0: STRING - ID of the task\n//  1: SCALAR - Number of targets escaped to fail the task\n//  2: SCALAR - Number of targets eliminated to complete the task\n//  3: SCALAR - Amount of funds the company recieves if the task is successful (default: 0)\n//  4: SCALAR - Amount of rating the company and player lose if the task is failed (default: 0)\n//  5: SCALAR - Amount of rating the company and player recieve if the task is successful (default: 0)\n//  6: BOOLEAN - Should the mission end (MissionSuccess) if the task is successful (Optional, default: false)\n//  7: BOOLEAN - Should the mission end (MissionFailed) if the task is failed (Optional, default: false)\n//  8: SCALAR - Number of seconds before targets escape (Optional)\n\n// Example:\n    // Default No Time Limit\n    [\"task_name\", 1, 2, 1500000, -75, 375, false, false] spawn forge_client_task_fnc_attack;\n\n    // Attack Within Time Limit\n    [\"task_name\", 1, 2, 1500000, -75, 375, false, false, 45] spawn forge_client_task_fnc_attack;\n",[132],{"type":14,"tag":84,"props":133,"children":134},{"__ignoreMap":7},[135],{"type":20,"value":130},{"type":14,"tag":23,"props":137,"children":139},{"id":138},"links",[140],{"type":20,"value":141},"Links",{"type":14,"tag":30,"props":143,"children":144},{},[145,152,154,159,160,166,167,173,174,180,181],{"type":14,"tag":146,"props":147,"children":149},"a",{"href":148},"/client/task",[150],{"type":20,"value":151},"Home",{"type":20,"value":153}," |\n",{"type":14,"tag":146,"props":155,"children":156},{"href":4},[157],{"type":20,"value":158},"Attack Module",{"type":20,"value":153},{"type":14,"tag":146,"props":161,"children":163},{"href":162},"/client/task/defuse",[164],{"type":20,"value":165},"Defuse Module",{"type":20,"value":153},{"type":14,"tag":146,"props":168,"children":170},{"href":169},"/client/task/destroy",[171],{"type":20,"value":172},"Destroy Module",{"type":20,"value":153},{"type":14,"tag":146,"props":175,"children":177},{"href":176},"/client/task/hostage",[178],{"type":20,"value":179},"Hostage Module",{"type":20,"value":153},{"type":14,"tag":146,"props":182,"children":184},{"href":183},"/client/task/hvt",[185],{"type":20,"value":186},"HVT Module",{"title":7,"searchDepth":188,"depth":188,"links":189},2,[190,191,196],{"id":25,"depth":188,"text":28},{"id":52,"depth":188,"text":55,"children":192},[193,195],{"id":59,"depth":194,"text":62},3,{"id":106,"depth":194,"text":109},{"id":138,"depth":188,"text":141},"markdown","content:client:task:attack.md","content","client/task/attack.md","client/task/attack","md",1742777961725]