Enemies that resurect over time?

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
User avatar
ABN
Posts: 1
Joined: Tue Aug 29, 2023 9:52 pm
Preferred Pronouns: He/Him
Graphics Processor: Not Listed

Enemies that resurect over time?

Post by ABN »

Hello,
First time poster here and im gonna cut to the chase with this ask.
Is it possible to create an enemy that would slowly revive itself over time? Example being the Gatling Groink from Pikmin 2 - which if it's corpse is not properly disposed of, will start revive.
Im sure this has been done before in other projects, so pointers would be nice.
Thanks to those who reply!
Protozoare
Posts: 17
Joined: Sat Oct 08, 2022 2:51 am
Preferred Pronouns: He/Him

Re: Enemies that resurect over time?

Post by Protozoare »

Yes, it's possible. You can call A_Raiseself() to have a monster resurrect itself. If you want the monster to slowly revive, you could try making some custom states, or giving it a for loop to delay the revival.
Post Reply

Return to “Scripting”