Jump to content
Sign in to follow this  
ben_s

Placing point on map for script???

Recommended Posts

Ok, i want to be able to place a marker on map or something of that kind and a chinook would land at that spot for extraction...

But, i wouldnt know where to begin with this... :confused: :confused:

Any help appreiciated. Thanks.

Share this post


Link to post
Share on other sites

You can place a unit: (side) Empty, (class) Objects, Invisible H , and place the waypoint near it.

The Invisible H marker wont show on players maps. If you want to see it, pick another type of "H", Civil, Rescue, Regular.

My chopper lands there, where I placed a Get Out waypoint for my squad inside. In "OnAct" of the waypoint, I added: RescueOne land "LAND";

RescueOne is my choppers name, and I read somewhere this ensures he lands, rather then dicking about waiting to be shot down, LOL.

Hope it helps (and works, hehe)

Share this post


Link to post
Share on other sites

I think you missed what i wanted. I want to say click somewhere on map and the helicopter would land there.....

Share this post


Link to post
Share on other sites

You can do that with the onMapSingleClick command. Like this:

onMapSingleClick "heli move _pos";

Read that page for further information. It also explains how to disable any further map click actions. You can keep resetting the chopper's waypoint all the time unless you disable it.

Share this post


Link to post
Share on other sites

Would that command work with CWC or just resistance ?

Share this post


Link to post
Share on other sites

It was only added in patch 1.85, so you'll need OFP:Resistance / GOTY edition.

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  

×