broma-arma / BromA-Framework-A3-Addon

The addon version of the BromA Framework for ArmA 3.
5 stars 9 forks source link

Enabling Headless client plugin causes mission_ai_controller to be set to false in editor #187

Open Royallle opened 2 years ago

Royallle commented 2 years ago

This is an editor issue only.

Changing the default value of the headless client plugin parameter will make the variable mission_ai_controller be set to false and causing problem in any script dependent on it.

mission_AI_controller = if (mission_enable_hc) then { !isServer && !hasInterface } else { isServer };

the !isServer && !hasInterface condition will return false. Maybe add a check for isMultiplayer ((!isServer && !hasInterface) || (!isMultiplayer)) ?

Coryf88 commented 2 years ago

I've been thinking about making the mission_AI_controller completely automated and removing the mission parameter, but it'd break some of your older missions.