uiox 0 Posted June 12, 2002 Spacing I want to increase the distance between units or vehicles when they are in formation (avoid choppers collisions or infantry under fire), for AI and player's group. New or next leader I want change the leader of AI groups (for me in armored group a leader without vehicle can't be the leader) A "weight" unit Sometime you can see choppers attack soldier instead enemy chopper... Thanks Share this post Link to post Share on other sites
uiox 0 Posted June 15, 2002 Leader not useful Spinor give me the solution, something like this: _Alone = false _OldLeader = leader group3 _Nb = count units Group3 _i = 0 _GrpRes = [] #SearchVehicle _GrpRes = _GrpRes + [Leader Group3] [Leader Group3] join grpnull ? (vehicle(leader Group3) == leader Group3) and (_i< _nb) : _i = _i +1 ; goto "searchVehicle" _GrpRes Join (leader Group3) Share this post Link to post Share on other sites