Jump to content
Sign in to follow this  
S_Z

Make a damaged helicopter return to base

Recommended Posts

Is it possible to make a trigger that kicks in when a vehicles health has got down to a certain point? I want to make a chopper support a infantry-team but return to base if it gets badly hurt. Is it possible to make this in a relatively easy way (I’m pretty new to this stuff)?.

Share this post


Link to post
Share on other sites

There's a command called "getdamage" that you can use. You could put it in the condition field of a trigger or waypoint.

It would look something like this: chopper1 getdamage >= 0.5;

I've never used it myself, but in theory it should work. Good luck with your mission.

xmas.gif

Share this post


Link to post
Share on other sites

Thanks!! Works perfect xmas.gif

I like the spelling of that commmand...getdammage smile.gif

Share this post


Link to post
Share on other sites

I can't get it to work confused.gif

I tried the command but it wouldn't let me exit the WP setup. I had to change it to

getdammage chopper1 >=.5

And it doesn't work.

Share this post


Link to post
Share on other sites

Yes, it should be â€getdammage chopper1 >= 0.5â€, and it works. I made a small test, I placed some east machinegunners on the ground and a west helicopter some distance away from them. Then I placed a â€move†WP (for the chopper) in the middle of all machinegunners and another â€move†WP back where the helicopter started.

In the first WP I put â€getdammage chopper1 >= 0.5†and set the WP to combat mode and open fire. In the second WP I put â€careless†and â€never fireâ€, I’m not sure you need to do that but I wanted the chopper to get out of there as soon as possible and not fire at anymore targets.

It works perfect, the chopper attacks targets until it gets to 50% damage then it moves to the second WP, just as I wanted smile.gif

Share this post


Link to post
Share on other sites

Make sure you have 0.5 not .5, I think (Not positive) that can screw the string. Other than that make sure it is all spelt correctly.

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  

×