player.Health = 0.0;

Started by BeckzyBoi, Jun 26, 2018, 12:45 PM

Previous topic - Next topic

BeckzyBoi

When you set a player's health to 0 and they're in a vehicle, they won't die until they exit the vehicle. So basically they can continue to drive around and not die until they leave the vehicle. Sorry if this has been posted before, but I couldn't find a such topic...

NicusorN5

function CPlayer::Kill()
{
  this.Immunity = 0;
  this.Eject();
  this.Health = 0;
}

BeckzyBoi

Quote from: Athanatos on Jun 26, 2018, 01:20 PMfunction CPlayer::Kill()
{
  this.Immunity = 0;
  this.Eject();
  this.Health = 0;
}

Lol I am aware of the scripted fix. I was just reporting the bug.