Jump to content
Sign in to follow this  
Mersu

Simple target

Recommended Posts

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

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

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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×