Jump to content
Sign in to follow this  
jw custom

How to add kills from a spawned "bomb" to player

Recommended Posts

As the title says how do i add the kills from a spawned "bomb" like below?

bomb1 = "ARTY_Sh_81_HE" createVehicle [_dropPosX, _dropPosY, 100];

I was thinking something with addEventHandler on fired but i have no idea if thats correct and how it should look like!

I think i've seen a topic on this but i can't seem to find it :(

Share this post


Link to post
Share on other sites

Well it depends on how the bombs are spawned, for example if they are with an addaction you could find who activated (the second parameter passed to script I think) the action then find out who was alive & near the bomb before it went off. You would then compare who was alive & near after it went off finding out who and what died, from that you could add score depending on what died.

That was just an idea btw :) no idea if it would work

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  

×