[ACS] Current health inventory in GZDoom problem

Discuss all aspects related to modding Zandronum here.
Post Reply
dukevsdoom
Registered just to make one post
Posts: 1
Joined: Wed Jun 17, 2020 2:57 pm

[ACS] Current health inventory in GZDoom problem

#1

Post by dukevsdoom » Thu Jun 18, 2020 8:45 am

How to keep the current health inventory for the player class after unmorphing in GZDoom? When the player class get back from morphing status, The health get 100 again whatever the clash health was before morphing. how to solve that?

script 524 (void)
{
int morphed = MorphActor(0, "ShrunkMarine", "", 350, 0, "NoFlash", "NoFlash");
}


Thanks

Lollipop
Zandrone
Posts: 1123
Joined: Tue Jul 24, 2012 10:34 am
Location: Denmark

[ACS] Re: Current health inventory in GZDoom problem

#2

Post by Lollipop » Thu Jun 18, 2020 4:54 pm

You need to save it so that you can restore it. How you do this, be script variable, dummy inventory items, decorate user variable or whatever else, is up to you.

Post Reply