[ACS] How to change the limit of Health?

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
RmBeer
New User
Posts: 2
Joined: Sun Jul 14, 2019 7:02 am

[ACS] How to change the limit of Health?

#1

Post by RmBeer » Sun Jul 14, 2019 7:12 am

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
}

User avatar
TDRR
Forum Regular
Posts: 153
Joined: Thu Jun 28, 2018 9:13 pm
Location: Venezuela

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

#2

Post by TDRR » Mon Jul 15, 2019 6:24 am

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);
No Gucci, no Prada, no Supreme, but my sadness got an ending, my smile shining like bling-bling, i'm so blessed feeling like a king!

play with my bots or bad stuff will happen to u >:c

Post Reply