Page 1 of 1

[ACS] Current health inventory in GZDoom problem

Posted: Thu Jun 18, 2020 8:45 am
by dukevsdoom
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

[ACS] Re: Current health inventory in GZDoom problem

Posted: Thu Jun 18, 2020 4:54 pm
by Lollipop
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.