Page 1 of 1

[ACS] How to change the limit of Health?

Posted: Sun Jul 14, 2019 7:12 am
by RmBeer
hello.

I need to create a short script that only changes the energy limit of the DoomGuy that you drive. I think I've found maxHealth and Health, but it's not working.

Code: Select all

ACTOR DoomPlayer : PlayerPawn
{
	Health 1000000
	maxHealth 1000000
}

[ACS] Re: How to change the limit of Health?

Posted: Mon Jul 15, 2019 6:24 am
by TDRR
Use this ACS script:

Code: Select all

Script "Set player health" ENTER
{
SetActorProperty(0, APROP_HEALTH, 9999);
}
And this one in case the player is going to respawn:

Code: Select all

Script "Set player health on respawn" RESPAWN
{
SetActorProperty(0, APROP_HEALTH, 9999);
}
Why do you want to set it that high? Wouldn't it be easier to set invulnerability with this:

Code: Select all

SetActorProperty(0,APROP_INVULNERABLE, TRUE);