Posted By: marxist_reloaded
Player Health - Puzzled - 08/04/06 17:17
When the player's health drops below zero I want to show some splash screens then end the game. I am trying to do this in the main game loop which begins while(1). But when I try to access player health, I get an empty pointer error.
The value I'm using for player health is plBiped01_entity._health__003 This appears to be the correct variable because I use it in a panel in the main function outside of the main game loop, and the correct health is displayed in the panel. But when I do if(plBiped01_entity._health__003 < 0){ do something here} in the main game loop I get an empty pointer error. I am very puzzled. Help appreciated
The value I'm using for player health is plBiped01_entity._health__003 This appears to be the correct variable because I use it in a panel in the main function outside of the main game loop, and the correct health is displayed in the panel. But when I do if(plBiped01_entity._health__003 < 0){ do something here} in the main game loop I get an empty pointer error. I am very puzzled. Help appreciated