Jump to content
Sign in to follow this  
major_upset

OWP Mi26 won't dropoff apc

Recommended Posts

First off sorry if this has been asked a million times before.

Ok I've got this mission where a Mi-26 Halo (OWP) is set to drop in a BMP, with the sky crane version. I've got it to have the BMP hooked up from the start, and get it to go where I want.

However getting it to actually "Drop off" it's cargo, is something I haven't a clue about, I've looked through the addons readme, and all it says is, I must give a  "true" variable for "global_unhook" (global_unhook = true) or use "chopper_name flyInHeight 15"

Do I need to make a script? Can I use a trigger, or game logic to make it happern? (if so how?)

All help welcome. And sorry for the noob question.  goodnight.gif

Share this post


Link to post
Share on other sites

Use a trigger that activates when your transport Mi-26 is at your desired location. Make it a trigger that uses East, Present. Put the following in the condition field:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">mychopper in thislist

Where mychopper is your unit ID. Have the onActivation field contain the following:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">mychopper flyinheight 10;mychopper exec "heightcheck.sqs"

Make a script called "heightcheck.sqs". Have it run a simple loop to check the chopper's height:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#wait

_z1=getpos _this select 2;

?_z1<15:goto "drop";

~0.001

goto "wait";

#drop

global_unhook=true;

exit

If you do it this way your trigger won't ever execute until your transport heli enters it thanks to the 'in thislist' part. When it does it will tell the heli to drop to 10 meters and run a script that waits for it to get below 15 meters where it then makes the global_unhook variable become true. Presumably then the main addon/script's author will have instructed the chopper to drop the BMP. Should work fine smile_o.gif

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  

×