Kladho 10 Posted March 4, 2010 I want that you can call a unit to order him to move on the 'mapclick' and you can dot this over and over again Share this post Link to post Share on other sites
imutep 0 Posted March 4, 2010 In the BIS-wiki are examples to use the onMapSingleClick command. onMapSingleClick "NameUnit move _pos; true;" Share this post Link to post Share on other sites
Kladho 10 Posted March 4, 2010 Yes okay but how at that position also a marker and if the unit is at his location then the marker go's away Share this post Link to post Share on other sites
imutep 0 Posted March 6, 2010 (edited) It should work with this... "NameMarker" setMarkerPos [0,0]; onMapSingleClick "NameUnit move _pos;""NameMarker"" setMarkerPos _pos"; true;" if (NameUnit distance _pos <=1) then {deleteMarker "NameMarker"}; Edited March 6, 2010 by Imutep Share this post Link to post Share on other sites
Kladho 10 Posted March 7, 2010 Thanks this works but i isnt going to stop you can click the holly time i just want 1 CLICK and then you cant click enymore Share this post Link to post Share on other sites
Bon 12 Posted March 7, 2010 There you go: onMapSingleClick "NameUnit move _pos;""NameMarker"" setMarkerPos _pos"; true; [color="Blue"]onMapSingleClick """";[/color] " Share this post Link to post Share on other sites