Jump to content
Sign in to follow this  
Kladho

OnSingleMapClick Problem

Recommended Posts

i have this code:

NameMarker" setMarkerPos [0,0];

onMapSingleClick "NameUnit move _pos;""NameMarker"" setMarkerPos _pos"; true; onMapSingleClick """"; ";

if (NameUnit distance _pos <=1) then {deleteMarker "NameMarker"};

this code is activated bye addAction but is isnt working

Plaese help me i am CONFUSED :butbut:

Edited by Kladho

Share this post


Link to post
Share on other sites

Here:

"NameMarker" setMarkerPos [0,0];

onMapSingleClick "NameUnit setPos _pos; 'NameMarker' setMarkerPos _pos; true; onMapSingleClick ''; ";

if (NameUnit distance _pos <=1) then {deleteMarker "NameMarker"};

You should of course have a marker named NameMarker and a unit named NameUnit.

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  

×