Jump to content
Sign in to follow this  
=Odin=

Help with hidden Objective

Recommended Posts

G'Day, I am new to scripting but am getting the hang of it, mostly learnt it all through this forum it is a great place. But I am having a little trouble with getting the marker for my second Objective to be hidden untill 1st Objective is complete.

The actual objective is hidden but how do I hide this Marker? I've searched and read the OFP FAQ but to no avail on this Problem.

Here is what is in my Breifing;

Quote[/b] ]<! --- ----------------------------->

<! --- Missions plan >

<! --- ----------------------------->

<p><a name="plan"></a>

<p align="center"><img src="green.jpg" width="128" height="64"></p>

Short description of the mission.

</p>

<hr>

<p><a name = "OBJ_1"></a>Primary : <a href="marker:kill">Rescue Airmen </a></p>

<p>Secondary : Destroy <a href="marker:Intelligence HQ">Clear The Base</a></p>

<hr>

<hr>

<p><a name = "OBJ_2" status="hidden".</a>LZBravo</p>

<hr>

<p><a name = "OBJ_2"></a>Move to LZ Bravo.

</p>

<hr>

<! --- End of "Plan" section>

And the Init.sqs

Quote[/b] ]"2" objStatus "HIDDEN"

exit

Am I missing somthing, any ideas?

Cheers

Odin

Share this post


Link to post
Share on other sites

you need to set the marker EMPTY in the editor.

when you want it to appear add setmarkertype from this list http://community.bistudio.com/wiki/setMarkerTypeLocal

into your script

Dont forget the other commands:

setMarkerBrush

setMarkerBrushLocal

setMarkerColor

setMarkerColorLocal

setMarkerDir

setMarkerDirLocal

setMarkerPos

setMarkerPosLocal

setMarkerShape

setMarkerShapeLocal

setMarkerSize

setMarkerSizeLocal

setMarkerText

setMarkerTextLocal

setMarkerType

setMarkerTypeLocal

you can find these in the wiki wink_o.gif

http://community.bistudio.com/wiki/Category:Scripting_Commands_ArmA

Share this post


Link to post
Share on other sites

Thank-you Junker, works a treat biggrin_o.gif Ahh the wiki, I did look just not in the right place hehe smile_o.gif

Share this post


Link to post
Share on other sites

I've got a similar problem. I am using a script that adds mines randomly around inside the marker. Right now i'm using just a regular grid type solid colored marker. If I change this to Icon and make it empty so it doens't show up on the map, will it still keep the same size limits? Or, is there a way to just make the regular marker invisible?

Share this post


Link to post
Share on other sites

Heya Shadow_Spyder, Have you tried Kronzky's MineField Script? I ve used it and the marker stays hidden, It does all that you want and more wink_o.gif you can download it here;

http://www.ausarma.com/download.php?view.87

When I used this one It did not matter what the marker type was as the script hides it, so long as it was called areamarker

Good luck

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  

×