soulaco 10 Posted October 23, 2009 Does anyone know how to use onDoubleClick for the map? I am having trouble getting this event working. Thanks in advance! Share this post Link to post Share on other sites
tcp 10 Posted October 23, 2009 Similar command, Same syntax, but better documented: http://community.bistudio.com/wiki/onMapSingleClick Without know what you want to do, it's hard to provide help. Share this post Link to post Share on other sites
soulaco 10 Posted October 23, 2009 It's not the same syntax. onDoubleClick is: map onDoubleClick command what do I put in for 'map' if I want it to respond to double-clicking on the in-game map? Share this post Link to post Share on other sites
tcp 10 Posted October 23, 2009 (edited) My mistake. I think the onDoubleClick is something used in the editor, not in-game. What if you embedded the command inside itself? onMapSingleClick "[] spawn {execVM 'reset.sqf';}; onMapSingleClick 'command; true;'; true;" reset.sqf sleep 0.5; onMapSingleClick ""; Force player to click twice in less than half a second for it to be considered a double-click. Edited October 23, 2009 by tcp Share this post Link to post Share on other sites
ProfTournesol 956 Posted October 24, 2009 My mistake.I think the onDoubleClick is something used in the editor, not in-game. What if you embedded the command inside itself? onMapSingleClick "[] spawn {execVM 'reset.sqf';}; onMapSingleClick 'command; true;'; true;" reset.sqf sleep 0.5; onMapSingleClick ""; Force player to click twice in less than half a second for it to be considered a double-click. You know that this is not what he needs. As you know about his other thread, he's looking for a way to get the position of markers created on map by a double click. Share this post Link to post Share on other sites
tcp 10 Posted October 30, 2009 ProfTournsol, what is your solution? My solution or even a single click action might work if you execute a script that waits a certain amount of time then finds the nearest marker to the clicked position. Share this post Link to post Share on other sites
ProfTournesol 956 Posted October 30, 2009 ProfTournsol, what is your solution?My solution or even a single click action might work if you execute a script that waits a certain amount of time then finds the nearest marker to the clicked position. Sorry, i didn't understood that you meant it that way. But i'm not aware of a way to get "the nearest marker" from a given clicked position. Share this post Link to post Share on other sites