Jump to content
Sign in to follow this  
Pappy60

locality issue on dedicated?

Recommended Posts

I have a trigger to end an objective, the trigger does fire, the sniper does exit but the task status does not change in the briefing, the hint does not show and the radio message does not play..this did work in preview (before I added the isServer statements) so I know the task names are correct etc.

Is this a locality issue, do I need to end the tasks a different way on the server?

Cond:

jolly62 in thisList and sniper1 in (thislist select 0) AND isServer AND getPos (thislist select 0) select 2 < 2;

Act

if (not isServer) then {exit}; tskobj_2 setTaskState "SUCCEEDED"; null = [objnull, objnull, tskobj_2, "SUCCEEDED"]; Hint "Objective Complete! Sniper Extracted!"; player setcurrenttask tskobj_3; Jolly62 vehicleRadio "RadioMsg11"; {_x action ["GETOUT", vehicle _x]; unassignVehicle _x; } foreach (units sniper1); 

Edited by Pappy60

Share this post


Link to post
Share on other sites

jolly62 in thislist && sniper1 in jolly62 && getpos jolly62 select 2 < 2

tskobj_2 settaskstate "SUCCEEDED";
null = [objnull, objnull, tskobj_2, "SUCCEEDED"] execVM "CA\Modules\MP\data\scriptCommands\taskHint.sqf";
hint "Objective Complete! Sniper Extracted!";
player setcurrenttask tskobj_3;
jolly62 vehicleradio "RadioMsg11";
sniper1 action ["EJECT", jolly62];

Edited by Shuko

Share this post


Link to post
Share on other sites

thanks shk, you are the man :)

So I don't need the isServer statements at all?

Share this post


Link to post
Share on other sites

okay definately working better but I think I still need unassignVehicle, now the task is completed and the radio message plays and sniper gets out but immediately gets back in, does not follow waypoints...

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  

×