Jump to content
Sign in to follow this  
Alonzo

Ship onKilled firing too often/too soon?

Recommended Posts

I've got an opposing fleet battle set up, 8 ships one side, 5 on the other. I'm counting "onKilled" events from each side to see which fleet is destroyed. But I'm seeing something weird -- sometimes I will get enough onKilled events through my counter MCU to flag one side as "dead" even though there are ships left. Does something funny happen with ship onKilled events? Do I need to tweak anything around damage reporting?

 

I've never seen this behavior before but I wasn't paying super close attention. My current map focuses a lot on the fleet battle so I want to get it right.

Share this post


Link to post
Share on other sites

 

51 minutes ago, Alonzo said:

I've got an opposing fleet battle set up, 8 ships one side, 5 on the other. I'm counting "onKilled" events from each side to see which fleet is destroyed. But I'm seeing something weird -- sometimes I will get enough onKilled events through my counter MCU to flag one side as "dead" even though there are ships left. Does something funny happen with ship onKilled events? Do I need to tweak anything around damage reporting?

 

I've never seen this behavior before but I wasn't paying super close attention. My current map focuses a lot on the fleet battle so I want to get it right.

 

I remember that one vehicle can generate onKilled event more than once so I connect onKilled to a counter with limit 1.

  • Thanks 1
  • Upvote 2

Share this post


Link to post
Share on other sites

Yep - that’s the fix.

Share this post


Link to post
Share on other sites
On 5/20/2019 at 11:43 AM, =LG=Kathon said:

I remember that one vehicle can generate onKilled event more than once so I connect onKilled to a counter with limit 1.

 

On 5/20/2019 at 4:07 PM, Gambit21 said:

Yep - that’s the fix.

 

Indeed, I should have figured that out myself, but it's sometimes good to have things pointed out in simple language. Thanks to you both!

 

(Turns out I had like 3 maps that in theory had this problem...I suspect it's more an issue with "big" ships than small ones, but still, it's nice to have correct logic in the maps).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...