Jump to content
Sign in to follow this  
Kladho

unit move on mapclik

Recommended Posts

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

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

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 by Imutep

Share this post


Link to post
Share on other sites

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×