breeze 0 Posted January 12, 2011 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
shuko 59 Posted January 12, 2011 setMarkerAlpha 0 = hidden 1 = visible Share this post Link to post Share on other sites
celery 8 Posted January 12, 2011 When placing a marker, set its icon to "Empty". When you want to show it, setMarkerTypeLocal it into another icon: http://community.bistudio.com/wiki/setMarkerTypeLocal Naturally you won't see markers without a map in the first place, though. Share this post Link to post Share on other sites
breeze 0 Posted January 12, 2011 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
celery 8 Posted January 12, 2011 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
breeze 0 Posted January 12, 2011 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
[GLT] Legislator 66 Posted January 12, 2011 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
breeze 0 Posted January 12, 2011 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
celery 8 Posted January 12, 2011 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
galzohar 31 Posted January 13, 2011 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
breeze 0 Posted January 13, 2011 (edited) 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 January 13, 2011 by Breeze Share this post Link to post Share on other sites
[GLT] Legislator 66 Posted January 13, 2011 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
breeze 0 Posted January 14, 2011 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