Jump to content

Nissen

Member
  • Content Count

    4
  • Joined

  • Last visited

  • Medals

Posts posted by Nissen


  1. So I am trying to set up a domi-insurgency mix gamemode for my clan, and want to give the some admins a script to track all vehicles an option to see all vehicles with an external script execution. I've got everything else planned out but need this type of script. Hopefully modeled after this script that lets my admins and moderators with the script track all the players in our server:

    all_players_on_map.sqf

    hint "Adding Player Markers";
    player addAction["<t color=""#F0C21B"">Players on map</t>", "\RRG\ADMIN\all_players_on_map.sqf", "", 0];
           unitList = allUnits;
           j = count unitList;
           i = 0;
           markPos = true;
    
           while {markPos} do
           {
           unitList = allUnits;
           j = count unitList;
           i = 0;
    
                   for "i" from 0 to j do
                   {
                           unit = unitList select i;
                           pos = position unit;
                           deleteMarkerLocal ("playerMarker"+ (str i));
                           marker = "playerMarker" + (str i);
                           marker = createMarkerLocal [marker,pos];
                           marker setMarkerTypeLocal "dot";
                           marker setMarkerPosLocal (pos);
                           marker setMarkerColorLocal("ColorBlack");
                           marker setMarkerTextLocal format ["%1",name unit];
                   };
                   sleep 0.5;
           };
    

    Thanks for your help, I'm stumped and the heads want me to dev this for them ;)

×