Jump to content
Sign in to follow this  
Pappy60

WTF dedicated issues making me nuts....

Recommended Posts

this is making me crazy, this is on my dedicated server and this trigger activation is firing, the sniper does get out and I do get radio messages....but most times, the task does not change state....sometimes it does, sometimes it doesn't but the trigger always fires.....

What is wrong with this? (note the isServer statement was added as a possible fix but is not fixing it)

if (not IsServer) then {exit}; 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 ["GETOUT", jolly62]; {unassignVehicle _x; } foreach (units sniper1);

Edited by Pappy60

Share this post


Link to post
Share on other sites

execVM "CA\Modules\MP\data\scriptCommands\taskHint.sq f";

Look at the .sqf there is a space between the q and f, not sure if thats causing it or maybe its a typo.

Share this post


Link to post
Share on other sites

That is actually not in the code, it happened when I posted it here during the cut / paste

---------- Post added at 04:41 PM ---------- Previous post was at 04:40 PM ----------

weird......I edited the post to correct it but it still puts that space in....god I'm having a bad day :(

Share this post


Link to post
Share on other sites

That space is added by the forum.

If you try to update a task on the server, it has no effect on clients (players).

Share this post


Link to post
Share on other sites

so what is the proper way for a trigger to update a task on a dedicated server?

Share this post


Link to post
Share on other sites

mp framework is your friend..

Your calling the MPF script taskhint without useing MPF. so your missing the string to make the call local, and persistent for JIP.

_nic = [nil,player,"loc"+"per",rsetTaskState,tskobj_2,"SUCCEEDED"] call RE;
_nic = [nil,player,"loc"+"per",rtaskHint,tskobj_2,"SUCCEEDED"] call RE;
_nic = [nil,player,"loc"+"per",rsetcurrenttask ,tskobj_3] call RE;

Share this post


Link to post
Share on other sites

Or just let the trigger do its work, on both server and client.

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  

×