Jump to content
Sign in to follow this  
breeze

Hidden markers

Recommended Posts

I was hoping to have several markers defined but not visable to the player until he found a map

Does anyone know how I can allow the markers to rermain hidden and then appear after a map is found?

Share this post


Link to post
Share on other sites

So your saying I can make a trigger that upon activation I have this?

"MarkerOne" setMarkerTypeLocal "Location1";

"MarkerTwo" setMarkerTypeLocal "Location2";

"MarkerThree" setMarkerTypeLocal "Location3";

like that?

Share this post


Link to post
Share on other sites

Yes, although you might want to check the actual marker types that are listed: http://community.bistudio.com/wiki/cfgMarkers

Also, triggers for some reason aren't happy with strings used with the command so you probably have to do markerone="markerone";markerone setMarkerTypeLocal... first.

Share this post


Link to post
Share on other sites

Celery can you explain what you mean by that sorry I am still learning alot so can you like tell me what the command means that your saying I should write?

Share this post


Link to post
Share on other sites

Why so complicated?

1. Place your marker on the map and design/name it whatever you want.

2. Put this in your init.sqf

if (isServer) then 
{
"Name_of_your_marker" setMarkerType "Empty";
};

3. As soon as you've activated the trigger, use this code:

"Name_of_your_marker" setMarkerType "Classname";

Insteat of "Classname" use the classname of the marker you've placed in the first place. Take a look at this list: http://www.armatechsquad.com/ArmA2Class/A2/Markers/CfgMarkers/

Share this post


Link to post
Share on other sites

It's not so complicated I just haven't really learned any scripting yet. But thanks for your reply.

Share this post


Link to post
Share on other sites

Step 1: Place the marker you want, but choose the "Empty" icon.

Step 2: markername="markername";markername setMarkerTypeLocal "hd_destroy" in the On act field of a trigger. If you are looking for the condition of having a map in your inventory, it's "ItemMap" in items player, although like I said before, you will see no markers in any case without a map.

Share this post


Link to post
Share on other sites

Yeah if you're not giving the player a map anyway you don't need to hide any markers because you need the map (or GPS, though I assume that if you give him no map you also give him no GPS) to see them.

Share this post


Link to post
Share on other sites

Ohhh no I have a mission where the player kills an officer and recieves a map when he dies then I want the hidden markers to show up on the player map

So i have that part of it and that map is called like AZC_MAP

So I want to understand what condition to put in for him having it I want him to actually have to possess the map after the kill to reveal the markers.

I tried to use the HasWeapon as a condition to reveal the markers thats not working?

Edited by Breeze

Share this post


Link to post
Share on other sites

Create a trigger with the condition

!(Name_of_the_Officer hasWeapon "AZC_MAP")

As soon as the officer loses the map it will active the trigger.

Share this post


Link to post
Share on other sites

aahhh thanks man I kept trying to think of only the new guy getting it but that will work thanks so much

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  

×