Jump to content
Sign in to follow this  
misinformed

It is beyond me....

Recommended Posts

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×