misinformed 0 Posted March 21, 2007 Arghhh. Now that ive gotten that out of the way. Ive spent a fair amount of time on this, my 4th mission since ive gotten back into the glamorous world of mission editing since Opf. Basically map markers aren't updating properly when someone joins the game in progress, if an obj is completed after they join it shows (ie turns from red to green). However previous obj map markers sometimes do and sometimes wont update. in the activation field of one of my objective triggers <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">obj1cdone=true; [server, "objective1"] exec "obj.sqs"; Obj.sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_scriptcall = _this select 1 ; ============================================================================ ?(_scriptcall == "objective1"):goto "objective1" ?(_scriptcall == "objective2"):goto "objective2" ?(_scriptcall == "objective3"):goto "objective3" ?(_scriptcall == "objective4"):goto "objective4" ?(_scriptcall == "objective5"):goto "objective5" ?(_scriptcall == "objective6"):goto "objective6" ?(_scriptcall == "objective7"):goto "objective7" ; ============================================================================ #objective1 "24_1" setmarkercolor "colorgreen" obj1=true; publicVariable "obj1" exit ; ============================================================================ #objective2 "24" setmarkercolor "colorgreen" obj2=true; publicVariable "obj2"; exit ; ============================================================================ #objective3 "24_2" setmarkercolor "colorgreen" obj3=true; publicVariable "obj3"; exit ; ============================================================================ #objective4 "4" objStatus "DONE" "patrol" setmarkercolor "colorgreen" "patrol_1" setmarkercolor "colorgreen" obj4=true; publicVariable "obj4"; exit ; ============================================================================ #objective5 obj5=true; publicVariable "obj5"; exit ; ============================================================================ #objective6 "6" objStatus "DONE" "bridge" setmarkercolor "colorgreen" obj6=true; publicVariable "obj6"; exit ; ============================================================================ #objective7 "7" objStatus "DONE" "camp" setmarkercolor "colorgreen" obj7=true; publicVariable "obj7"; exit ; ============================================================================ Init.sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">if !(local Server) then {exit} onPlayerConnected "publicvariable ""obj1"";publicVariable ""obj2"";publicVariable ""obj3"";publicVariable ""obj4"";publicVariable ""obj5"";publicVariable ""obj6"";publicVariable ""obj7"";publicVariable ""obj8"";publicVariable ""end1"";publicVariable ""end2"";publicVariable ""end3"";publicVariable ""end4"""; What am i doing wrong? Share this post Link to post Share on other sites
shuko 59 Posted March 21, 2007 init.sqs/sqf isnt run for JIP players. http://bugs.armed-assault.net/view.php?id=1782 Could try using just a simple trigger since they are fired for everyone when they load the mission. Share this post Link to post Share on other sites
misinformed 0 Posted March 21, 2007 Thx will try it adding it directly to a trigger rather than referring it to an sqs. Share this post Link to post Share on other sites
misinformed 0 Posted March 22, 2007 It didnt work. Any other suggestions? Share this post Link to post Share on other sites
Cloughy 0 Posted March 22, 2007 If you try obj1 == 1 in the cond field and have your set obj complete code in the activation, when someone JIPs, it should fire all these triggs that have been fired and set their briefing. Cheers GC Share this post Link to post Share on other sites