Jump to content
Sign in to follow this  
soulaco

Map question

Recommended Posts

When I double click the map and type in some text an 'X' with a circle around it is displayed on the map. Is there any way to get this location from a script?

Share this post


Link to post
Share on other sites

I know about onMapSingleClick -- but that's not what I am asking. If I open the map during the game and place an icon on the map that say "Here" for my teammates to see, is there any way I can get that position that is labeled from a script?

Share this post


Link to post
Share on other sites

Are there any examples for onDoubleClick? I have trouble getting it working properly.

But what if I want to mark some places on the map and then later on in the mission be able to get those marked areas. So, for instance, if I have 1 recon squad that marks a certain area for attack and then a second AI controlled squad needs to go to the areas on the map that are marked how could that be done?

Granted, I could create a publicVariable array and store the locations. But is there any way to get the marked areas directly from the in-game map without having to go through the trouble of setting up an array in the init.sqf file and then filling it and searching it, etc., etc.?

Share this post


Link to post
Share on other sites

that's what' he's saying. Ondoubleclick. if you set that for everyone. then the normal double click for just "text" isn't allowed. You'd have to script in to have a marker created, the text in the marker etc etc. then you can script whatever you wanted.

Share this post


Link to post
Share on other sites

Oh. Ok. I see what you are saying. So, in the action for onDoubleClick, I can create a marker and then I can access that marker via script. One question though -- will the marker that's created show up on the map? I would think it should, but I will need to test that.

Does anyone have any examples of how to use onDoubleClick? I have had trouble getting it working.

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  

×