Thirsty Panther Posted July 25, 2016 Share Posted July 25, 2016 I'm working on my Summer Games entry and I'm trying to create a "Game Over" screen. I linked my death script (Game over) to the "OnDeath" output via the flowgraph but it never seems to be called. I placed many System:Print calls but get no output. So I started going thru the FPS script and found that "Hurt" script calls the "Kill" script if the players health is less than zero. The Kill script creates a corpse and takes control of the camera preventing the player from having any more control of the character. It doesn't call the OnDead script. OnDead script is only called from the Hurt script which is not used. Well not by the Leadwerks AI script anyway. Can anyone confirm this for me. Quote Link to comment Share on other sites More sharing options...
Thirsty Panther Posted July 25, 2016 Author Share Posted July 25, 2016 OK so a search of the forums brings this Bug Report from last year. http://www.leadwerks.com/werkspace/topic/13098-fpsplayerlua-takedamage-and-hurt-treat-death-differently/page__hl__ondead Thanks Einlander for the solution. Could we fix this Josh. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.