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