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: Adding a bit of Immersion help  (Read 8308 times)

0 Members and 1 Guest are viewing this topic.

Offline Rommel92

  • Members
  • *
Re: Adding a bit of Immersion help
« Reply #15 on: 10 Jul 2009, 07:11:52 »
Code: [Select]
{
_leader = leader _x;
{removeAllItems _x} foreach _x;
if ( (not isnull _leader) and (side _leader == east) ) then {
if ((random 1) < 0.3) then { _x addWeapon "itemMap"; };
if ((random 1) < 0.3) then { _x addWeapon "itemRadio"; };
};
} forEach allGroups;

Maybe saves processing time? Dunno. Wouldn't change it that much, but hey, efficiency is gooooooood right?

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Adding a bit of Immersion help
« Reply #16 on: 10 Jul 2009, 23:54:56 »
Good point, but the problem is then that each non-leader will still have the default equipment.
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)