[{"data":1,"prerenderedAt":234},["ShallowReactive",2],{"content-query-rgmQwKuXml":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":228,"_id":229,"_source":230,"_file":231,"_stem":232,"_extension":233},"/client/task/defuse","task",false,"","FORGE - Defuse Task","mdi:cog-outline",{"type":11,"children":12,"toc":218},"root",[13,22,29,35,40,45,50,56,63,92,104,126,135,141,158,167,173],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"defuse-task-module",[19],{"type":20,"value":21},"text","Defuse 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 Defuse Tasks/Missions.",{"type":14,"tag":30,"props":36,"children":37},{},[38],{"type":20,"value":39},"The mission maker must define IEDs and objects, the framework will monitor the status of those IEDs and objects.",{"type":14,"tag":30,"props":41,"children":42},{},[43],{"type":20,"value":44},"A threshold must be set, specifying a given amount of IEDs that have to be defused, and the number of objects that need to survive 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-ieds",[61],{"type":20,"value":62},"Setup IED(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 Defuse Task set",{"type":14,"tag":68,"props":74,"children":75},{},[76],{"type":20,"value":77},"Place down the IED object(s)",{"type":14,"tag":68,"props":79,"children":80},{},[81,83,90],{"type":20,"value":82},"Spawn the ",{"type":14,"tag":84,"props":85,"children":87},"code",{"className":86},[],[88],{"type":20,"value":89},"forge_client_task_fnc_makeIED",{"type":20,"value":91}," function within the IEDs' init field that links the IED to the Defuse 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 IED object\n//  1: STRING - The ID of the task\n//  2: NUMBER - The Countdown Timer\n\n// Example:\n    [this, \"task_name\", 30] spawn forge_client_task_fnc_makeIED;\n","sqf",[100],{"type":14,"tag":84,"props":101,"children":102},{"__ignoreMap":7},[103],{"type":20,"value":97},{"type":14,"tag":64,"props":105,"children":107},{"start":106},4,[108,113],{"type":14,"tag":68,"props":109,"children":110},{},[111],{"type":20,"value":112},"Place down the object(s)",{"type":14,"tag":68,"props":114,"children":115},{},[116,118,124],{"type":20,"value":117},"Call the ",{"type":14,"tag":84,"props":119,"children":121},{"className":120},[],[122],{"type":20,"value":123},"forge_client_task_fnc_makeObject",{"type":20,"value":125}," function within the objects' init field that links the object to the Defuse Task",{"type":14,"tag":93,"props":127,"children":130},{"className":128,"code":129,"language":98,"meta":7},[96],"// Arguments:\n//  0: OBJECT - The Object\n//  1: STRING - The ID of the task\n\n// Example:\n    [this, \"task_name\"] call forge_client_task_fnc_makeObject;\n",[131],{"type":14,"tag":84,"props":132,"children":133},{"__ignoreMap":7},[134],{"type":20,"value":129},{"type":14,"tag":57,"props":136,"children":138},{"id":137},"register-task",[139],{"type":20,"value":140},"Register Task",{"type":14,"tag":64,"props":142,"children":144},{"start":143},6,[145],{"type":14,"tag":68,"props":146,"children":147},{},[148,150,156],{"type":20,"value":149},"Register the Defuse Task by calling the ",{"type":14,"tag":84,"props":151,"children":153},{"className":152},[],[154],{"type":20,"value":155},"forge_client_task_fnc_defuse",{"type":20,"value":157}," function in the init field of the task",{"type":14,"tag":93,"props":159,"children":162},{"className":160,"code":161,"language":98,"meta":7},[96],"// Arguments:\n//  0: STRING - ID of the task\n//  1: SCALAR - Number of entities destroyed to fail the task\n//  2: SCALAR - Number of ieds to defuse 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\n// Example:\n    [\"task_name\", 2, 3, 375000, -75, 300, false, false] spawn forge_client_task_fnc_defuse;\n",[163],{"type":14,"tag":84,"props":164,"children":165},{"__ignoreMap":7},[166],{"type":20,"value":161},{"type":14,"tag":23,"props":168,"children":170},{"id":169},"links",[171],{"type":20,"value":172},"Links",{"type":14,"tag":30,"props":174,"children":175},{},[176,183,185,191,192,197,198,204,205,211,212],{"type":14,"tag":177,"props":178,"children":180},"a",{"href":179},"/client/task",[181],{"type":20,"value":182},"Home",{"type":20,"value":184}," |\n",{"type":14,"tag":177,"props":186,"children":188},{"href":187},"/client/task/attack",[189],{"type":20,"value":190},"Attack Module",{"type":20,"value":184},{"type":14,"tag":177,"props":193,"children":194},{"href":4},[195],{"type":20,"value":196},"Defuse Module",{"type":20,"value":184},{"type":14,"tag":177,"props":199,"children":201},{"href":200},"/client/task/destroy",[202],{"type":20,"value":203},"Destroy Module",{"type":20,"value":184},{"type":14,"tag":177,"props":206,"children":208},{"href":207},"/client/task/hostage",[209],{"type":20,"value":210},"Hostage Module",{"type":20,"value":184},{"type":14,"tag":177,"props":213,"children":215},{"href":214},"/client/task/hvt",[216],{"type":20,"value":217},"HVT Module",{"title":7,"searchDepth":219,"depth":219,"links":220},2,[221,222,227],{"id":25,"depth":219,"text":28},{"id":52,"depth":219,"text":55,"children":223},[224,226],{"id":59,"depth":225,"text":62},3,{"id":137,"depth":225,"text":140},{"id":169,"depth":219,"text":172},"markdown","content:client:task:defuse.md","content","client/task/defuse.md","client/task/defuse","md",1742777961727]