Jump to content
Sign in to follow this  
Blitzen

Map Click Movements for Units??

Recommended Posts

Okee Dokee here's the scoop:

I'm making an Afghan mission where a Russian commander is meeting with loyal taliban/resistance leaders to discuss weapons, support, etc. Thanks to an informant, the player knows about the meeting and knows that the Russian commander is leaving to meet them at a certain time. However, you don't know where the meeting will take place. To overcome this, you will need to use this UAV drone to track the commander to the meeting place. After you know the location of the meeting, you will then move there via helicopter, insert, and kill everyone (the usual :D)

I cant give a helicopter waypoints to the meeting location as this would allow a player to by-pass the UAV. Therefore, I want the player to choose a landing point via a "map click" (hopefully you know what Im talking about :rolleyes:). Ideally, the player would chose a landing spot, the helicopter would insert the squad, go to a holding postion, and then come extract the squad when everyone is dead. If this is too complicated, then I could have two helicopters: one to drop off the squad and one to pick 'em up.

Thanks so much for the help! I think I've got a pretty schweet mission coming along. :yay:

Share this post


Link to post
Share on other sites

Maybe the Norrn aerial taxi script would work, however i could not find it on armaholic maybe its in the forums somewhere.

Share this post


Link to post
Share on other sites
I want the player to choose a landing point via a "map click"

this is what you are looking for...

example:

onMapSingleClick "[Helo6,1] setWPpos _pos"

Share this post


Link to post
Share on other sites
this is what you are looking for...

example:

onMapSingleClick "[Helo6,1] setWPpos _pos"

Kewl! However, how do I give this "ability" to the player? Also, is there a way to move an invisible h to the same location that the player chooses? Will the helicopter be able to have additional waypoints?

Share this post


Link to post
Share on other sites

yes, yes and yes :)

the onMapSingleClick command works like any other command line. think of it as an init line or like calling a script. once you define it, you simply click on the map and the command executes whatever code you put between the quotes

for instance

onMapSingleClick "invisibleH setpos _pos ; [Helo6,1] setWPpos _pos , [Helo6,2] setWPpos _pos ; [Helo6,3] setWPpos _pos ; player setdammage 0 ; skiptime 5 ; ...etc"

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  

×