soulaco 10 Posted October 23, 2009 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
luki 53 Posted October 23, 2009 http://community.bistudio.com/wiki/onMapSingleClick Share this post Link to post Share on other sites
soulaco 10 Posted October 23, 2009 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
ProfTournesol 956 Posted October 23, 2009 Well, as you need to double click, then try onDoubleClick ? Share this post Link to post Share on other sites
soulaco 10 Posted October 23, 2009 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
Big_Daddy 10 Posted October 23, 2009 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
soulaco 10 Posted October 23, 2009 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
tcp 10 Posted October 23, 2009 Why would you create duplicate topics? http://forums.bistudio.com/showthread.php?t=88990 Share this post Link to post Share on other sites