Jump to content
Sign in to follow this  
Warlord_1011

Map Click Marker

Recommended Posts

Hello....

I am having trouble with some markers, its part of a Helicopter incursion

i cannot work out how to make it so that the helicopter will stay stationary, until i "request" reinforcements, and then the helicopter will move to a marker i place on the map using the onMapSingleClick command

i tried this and it will not work:

onMapSingleClick = _pos1

Reinforcements = createMarker["Extraction Point",[getPos _pos1 select 0, getPos _pos1 select 1]]; Reinforcements setMarkerShape "ICON"; Reinforcements setMarkerText "Reinforcements"; Reinforcements setMarkerType "DOT";

[/Quote]

can anyone help?

Share this post


Link to post
Share on other sites

Correct me if I'm wrong but isnt the onMapSingleClick supposed to go like this?:

onMapSingleClick "_pos1 = _pos";

Then I assume the second part would be something like:

Reinforcements = createMarker["Extraction Point",_ pos1; Reinforcements setMarkerShape "ICON"; Reinforcements setMarkerText "Reinforcements"; Reinforcements setMarkerType "DOT";

I'm not that experienced at scripting but I think that should work, I'm not in a position to test right now.

Share this post


Link to post
Share on other sites

i have no idea, if you are right or wrong lol, but i will try this

---------- Post added at 05:39 PM ---------- Previous post was at 05:30 PM ----------

that doesnt work either, i have just tried it

in theorey i want X = Onsingleclickmap

marker pos. = X

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  

×