Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Detecing addons in SP mission  (Read 3093 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