Jump to content
Sign in to follow this  
.Marti

Trigger only activating for player who activates

Recommended Posts

Hi there, I created a very basic script to take control over other units. It's meant to be used on dedicated server. 

 

I spawn the function with this, in a standard trigger (Blufor/present). 

 

Quote

_myFunction = [] spawn moveUnit;

 

The function:

 

Quote

moveUnit = {

if (!isDedicated && hasInterface) then {

    _antiguaUnidad = player;
    _grp = group player;
    _nuevaUnidad = _grp createUnit ["C_man_p_beggar_F", getMarkerPos "mrk1", [], 0, "FORM"];
    selectPlayer _nuevaUnidad;
    deleteVehicle _antiguaUnidad;
    };
};

 

 

The problem is: Sometimes works as intended (When any BLUFOR enters, the code is executed in every client). But sometimes, only executes for the player who entered the trigger. 

 

I researched a little bit and you are supposed to use something like in thisList etc to execute something in a certain client. Am I missing something? Any ideas? Is the script wrong?

 

Thanks, cheers. 

 

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  

×