Home   Help Search Login Register  

Author Topic: Adding a bit of Immersion help  (Read 3850 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)