Function CAN NOT be used on aircraft or helicopters. This function will only work on ground or naval forces!
When the value passed is false the AI is set off.
When the value passed is true the AI is set on.
local function AIOff(groupName)