{"name":"removeSimpleTask","title":"removeSimpleTask","type":"command","url":"https://community.bistudio.com/wiki/removeSimpleTask","revid":353336,"updated":"2024-03-15T17:11:51Z","groups":["Briefing"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Remove a simple task from the list of simple tasks.\n\n> [!NOTE]\n> If the Task to be removed is a child to some parent task and at the same time the parent to some child task, the child of this task gets orphaned and is listed in the root of Tasks tree (Tasks menu), retaining tree structure of its children.","syntaxes":[{"syntax":"person removeSimpleTask task","params":[{"name":"person","type":"Object","type_expr":"Object"},{"name":"task","type":"Task","type_expr":"Task"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"person"},"right":{"text":"task"}}],"examples":[{"code":["player removeSimpleTask _tskKillSpongebob;"]}],"see_also":["Tasks","createSimpleTask","setSimpleTaskDescription","setSimpleTaskDestination","setTaskState","setTaskResult","taskState"]}