Current health inventory in GZDoom problem

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
doomvsduke
Posts: 5
Joined: Wed Oct 16, 2019 2:55 am
Graphics Processor: Not Listed

Current health inventory in GZDoom problem

Post by doomvsduke »

Hello everybody,
How to keep the current health inventory for the player class after unmorphing? 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
Post Reply

Return to “Scripting”