calling specific animation when custom monster touches the ground

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
Okuni
Posts: 12
Joined: Sat Jul 22, 2023 12:14 pm

calling specific animation when custom monster touches the ground

Post by Okuni »

Good day fellow modders.

I have a question about animations and zscript.

To put it simple, I'll give you my idea:

Let's say that a Custom made cacodemon is flying around... Me as player manage to take it down.

How can I make that while the custom caco is falling play a custom animation AND right after the caco touches the ground.... the same caco plays an entire different animation?. I have this idea of the caco bouncing briefly in the floor before is finally dead.

how can I code that?.
Kzer-Za
Posts: 521
Joined: Sat Aug 19, 2017 11:52 pm
Graphics Processor: nVidia (Modern GZDoom)

Re: calling specific animation when custom monster touches the ground

Post by Kzer-Za »

https://zdoom.org/wiki/Actor_states, Crash state, is it what you are looking for?
Okuni
Posts: 12
Joined: Sat Jul 22, 2023 12:14 pm

Re: calling specific animation when custom monster touches the ground

Post by Okuni »

Hmmm.... maybe!. I'll take a look at it.

Thank you so much for your answer.
Post Reply

Return to “Scripting”