S_Z 0 Posted December 13, 2002 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
Lazarus_Long 0 Posted December 14, 2002 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. Share this post Link to post Share on other sites
S_Z 0 Posted December 14, 2002 Thanks!! Works perfect I like the spelling of that commmand...getdammage Share this post Link to post Share on other sites
Harnu 0 Posted December 14, 2002 I can't get it to work 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
S_Z 0 Posted December 14, 2002 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 Share this post Link to post Share on other sites
_Hekler_ 0 Posted December 14, 2002 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