Does anyone know how to use onDoubleClick for the map? I am having trouble getting this event working. Thanks in advance!
Does anyone know how to use onDoubleClick for the map? I am having trouble getting this event working. Thanks in advance!
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.
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?
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
Force player to click twice in less than half a second for it to be considered a double-click.Code:sleep 0.5; onMapSingleClick "";
Last edited by tcp; Oct 23 2009 at 21:08.
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.