Jump to content
Sign in to follow this  
shammy2010

making a marker on click

Recommended Posts

Hi guys

I am trying to make a mission where a fixed wing would move to a position marked on the map by the player. Now I think i know how to do this and that is to have an action "Fixed wing support" that starts a script where when you click on the map, it makes a marker and then tell the fixed wing to move to the marker by "plane move "marker1"" but I just can't figure out how to make a marker when I click on the map!

Now I am using an sqf file so maybe I'm not using the proper way to write it. Here's what I have in my sqf:

//ac130.sqf

hint "Set AC-130 Destination on Map";

onMapSingleClick """marker1"" setMarkerPos _pos";

"marker1" setmarkertype "Arrow";

"marker1" setmarkerColor "ColorBlue";

Now I am still new to scripting so please dont rip my head off :D What can I do to fix this?

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  

×