Mersu 0 Posted October 28, 2010 Hey, Im trying to build a firing range mission. Im using the "simple targets" as my principle targets. The problem is that the target goes down after a single hit, I need it to take two hits and then go down. I have no idea how to do this and Im hoping someone knows. Thx. Share this post Link to post Share on other sites
twirly 11 Posted October 30, 2010 I had a quick look at counting two hits on a simple target and then making it go down....and gave up! I did find this cool piece of work in my downloaded scripts though.....and also found the link for you. The code you need is probably buried in here somewhere. UNA Targets....nice stuff! http://forums.bistudio.com/showthread.php?t=107452&highlight=una+targets Hope it helps. Share this post Link to post Share on other sites
shuko 59 Posted October 31, 2010 target init: this addeventhandler ["HandleDamage",{_this execVM "ehPopup.sqf"}] ehPopup.sqf: _o = _this select 0; _d = damage _o; if (_d < 0.5) then { _o setdamage 0.5; } else { _o setdamage 1; }; Share this post Link to post Share on other sites
Mersu 0 Posted November 2, 2010 I had a quick look at counting two hits on a simple target and then making it go down....and gave up! I did find this cool piece of work in my downloaded scripts though.....and also found the link for you.The code you need is probably buried in here somewhere. UNA Targets....nice stuff! http://forums.bistudio.com/showthread.php?t=107452&highlight=una+targets Hope it helps. Thanks´for the effort! I´ll look into it. Share this post Link to post Share on other sites