Jump to content

Show messagebox on player death?


Orbiter1987

Recommended Posts

From my own experimentation with trying to do stuff on player death, I'm pretty sure once the player dies (or starts dying), you're basically done.

 

The way I worked around it was to make the player essential:

 

PlayerREF.SetEssential(true)

Which makes them immortal -- they never die! Then use the OnEnterBleedout event:

 

Event OnEnterBleedout()
    Debug.MessageBox("This is a message")
EndEvent

Don't forget to kill them (you should be able to use KillEssential(), or set them unessential again and use old-fashioned Kill()) when you're done, or do whatever else you want to be doing.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...