Jump to content
Korean Random
yinx2002

How could I get notified when player's tank destroyed ? Or other way "killed"

Recommended Posts

8 hours ago, yinx2002 said:

FYI

You can hook PlayerAvatar.updateVehicleHealth from Avatar.py

This will give you updates for every tank's health (including yours), when it is 0 or less - tank destroyed.

Case when health is less than 0 - it means ammo rack is blown up.

But there is also a rare case when health is > 0, but crew is dead, but just look into this function it has everything you need

Share this post


Link to post

Short link
Share on other sites

@MoD OK ,thanks. I hooked PostmortemPanel. __onVehicleStateUpdated , in which I can got DEATH INFO and a lot of things like the timer vale when tank goes into water.

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...