Discuss all aspects related to modding Zandronum here.
-
RmBeer
- New User
- Posts: 14
- Joined: Sun Jul 14, 2019 7:02 am
#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
}
-
TDRR
- Forum Regular
- Posts: 219
- Joined: Thu Jun 28, 2018 9:13 pm
- Location: Venezuela
-
Contact:
#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);
One thing I have asked from the Lord, that I shall seek: That I may dwell in the house of the Lord all the days of my life, to behold the beauty of the Lord and to meditate in His temple. (Psalm 27:4, NASB)
My Discord tag is @tdrr, and it's my preferred contact method. I also check PMs here from time to time.