Jump to content
Sign in to follow this  
TriggerHappy57

Chopper Stops/Aborts Landing Under Fire

Recommended Posts

Noob mission editor here. Ran into a problem where i cant get a helicopter to land if it is hit with small arms rounds. My intent is to have the chopper land no matter what.

Rundown: MH6 is named "goose1", it is set to careless. It follows move waypoints untill it arrives to a transport unload waypoint that is placed over an invisible helipad called "lz1". The transport unload waypoint on activation says goose1 land "lz1". The helicopter will land, unload and takeoff successfully. However if the choppers are under fire they will freeze in the air and no longer move. If i change the AI behavior to something other then careless the chopper no longer freezes mid-air but instead flys off randomly and does not land.

If you guys could tell me or direct me to a solution on how to get these choppers to land even when under fire and not freeze of fly off it would be a great help.

Here is a video of the problem I am having:

<object width="640" height="385"><param name="movie" value="http://www.youtube.com/watch?v=lE8GuYNn9TM&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/watch?v=lE8GuYNn9TM&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>

Edited by TriggerHappy57

Share this post


Link to post
Share on other sites
you could use setCaptive on the chopper so the enemy won't fire on it, and it can land safely.

I should clarify that the mission is TvT. If insurgents were ai that would probably work, but seeing as they would be players then I don't think this will work.

Share this post


Link to post
Share on other sites
Is the chopper armed ?

The chopper is a MH6, no weapons.

**********************************

I think I have found a somewhat klunky work around. In the init field of the chopper I entered: "this allowDamage false;" and set the combat mode to "never fire" and the chopper seems to continue landing and ignore enemy gunfire. The chopper is unfortunately invincible now but the pilot can still be killed.

**********************************

Thanks for your guys' input.

Edited by TriggerHappy57
Solution

Share this post


Link to post
Share on other sites

You should probably throw in a trigger so that if the pilot is killed then the chopper is allowed to take damage again. Just an idea. !alive nameofpilot, in the condition field of a trigger and then mh6 allowdamage true

Share this post


Link to post
Share on other sites
The chopper is a MH6, no weapons.

**********************************

I think I have found a somewhat klunky work around. In the init field of the chopper I entered: "this allowDamage false;" and set the combat mode to "never fire" and the chopper seems to continue landing and ignore enemy gunfire. The chopper is unfortunately invincible now but the pilot can still be killed.

**********************************

Thanks for your guys' input.

So the "never fire" command alone isn't enough ?

Share this post


Link to post
Share on other sites

"So the "never fire" command alone isn't enough ?"

I tried "never fire" combat behavior and it was not enough to prevent them from flying off. If the chopper starts to take damage then some other ai behavior triggers and they go into save myself mode.

I also tried just using "this allowDamage false;" and that was not enough. So in conclusion both parameters "this allowDamage false;" and "never fire" were necessary.

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  

×