OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: SaOk on 28 Apr 2010, 23:08:52

Title: Detecing addons in SP mission
Post by: SaOk on 28 Apr 2010, 23:08:52
Is there a way to detect if player is using certain addons or mods? I would like to make my "non-addon"-mission to feature ACE2 content/altered gamebalance if player have the mod enabled.
Title: Re: Detecing addons in SP mission
Post by: kju on 29 Apr 2010, 00:32:30
Code: [Select]
if (isClass(configFile>>"CfgPatches">>"ace_main")) then {//do stuff};
Title: Re: Detecing addons in SP mission
Post by: SaOk on 29 Apr 2010, 00:41:37
Thx, that should work. I also found that mod is enabled if:

Code: [Select]
count getArray (configFile >> "ACE_Config" >> "ace_pbos" >> "ace_pbos") > 0