Home   Help Search Login Register  

Author Topic: Detecing addons in SP mission  (Read 1454 times)

0 Members and 1 Guest are viewing this topic.

Offline SaOk

  • Missions Depot Staff
  • *****
    • My youtube profile
Detecing addons in SP mission
« 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.

Offline kju

  • Members
  • *
    • PvPScene - The ArmA II multiplayer community
Re: Detecing addons in SP mission
« Reply #1 on: 29 Apr 2010, 00:32:30 »
Code: [Select]
if (isClass(configFile>>"CfgPatches">>"ace_main")) then {//do stuff};

Offline SaOk

  • Missions Depot Staff
  • *****
    • My youtube profile
Re: Detecing addons in SP mission
« Reply #2 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