Jump to content
Sign in to follow this  
thebomb

Radar System

Recommended Posts

Idea is you can view players on the map by interacting with an object 

players to be visible client side only.... all players to be marked on the map for a certain time frame i.e. 2 minutes..

 

any help is appreciated

 

thx

Share this post


Link to post
Share on other sites
params ["_time", "_markerArray"];


_markerArray = [];
{
    if () then //any condition you want
    {
        _marker = createMarkerLocal [format["%1player", str getPos _x], getPos _x]; 
        _marker setMarkerTypeLocal "hd_dot";
        _marker setMarkerColorLocal "ColorKhaki";
        _marker setMarkerAlphaLocal 0.5;
        
        //etc..
        
        _markerArray pushBack _marker;
    }foreach allUnits; //playableUnits
};


sleep _time;


{deleteMarker _x} foreach _markerArray;

this should work.

just define _time.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×