ED Forums - View Single Post - How to STOP a task? Once done, how to change to a WP?
View Single Post
Old 12-05-2019, 02:12 AM   #13
Junior Member
ChuckIV's Avatar
Join Date: Jul 2017
Location: Elk Grove, CA.
Posts: 78

Is this how the code should look?? Do I leave the word CONTROLLABLE as part of the function name??

function CONTROLLABLE:ClearTasks(FGroup)

local DCSControllable = self:GetDCSObject(FGroup)

if DCSControllable then
local Controller = self:_GetController(FGroup)
return self

return nil


******* Do I need to put FGroup where there are parenthesis ?? ****************
"Never in the field of human conflict was so much owed by so many to so few." Winston Churchill

Processor - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz 4.00 GHz
Installed memory (RAM) - 32.0 GB
64-bit Operating System, x64-based processor
Windows 10 Pro on 110 GB SSD; DCS on 512 GB SSD; Backup Files on 931 GB Regular Drive
Video Card - NVIDIA GeForce GTX 1070

Last edited by ChuckIV; 12-05-2019 at 06:07 AM.
ChuckIV is offline   Reply With Quote