Megaquarium

Megaquarium

What will you create?
Access an ocean of content for Megaquarium created by players like you. New animals, decorations, tanks and more are available to expand your game and tailor it to your liking.
Learn More
Khaydar 92 1 Aug, 2024 @ 6:53am
How does Toilet Animations work?
I'm trying to make a guest facility that uses 2 different animations. One when unused and another when in use by guests. I see that toilets have the door opening when a guest uses them, tried copying the ;

"defaultAnimation":"placeholder_name",
"dontPlayDefaultAnimationAutomatically":true,

and yet no animations plays at all, even when guests use it.
Also tried adding animations to the main take in C4D but game doesn't detect those.
< >
Showing 1-2 of 2 comments
Twice Circled  [developer] 3 5 Aug, 2024 @ 9:12am 
The toilet's 'open' animation is initiated by the 'walkInside' behaviour when a guest arrives at an access square.

The problem is this behaviour also does a bunch of other stuff to make the guest 'walk inside' the facility. I'm also not sure how it would interact with a 'vendingMachine' behaviour, if both behaviours were attached to the same object.

If you want to try 'walkInside' you could set 'walkToCoord' as 0,0, then I suspect the guest will just stand there for whatever 'insideTime' is set to. That's OK. But then they'll probably immediately swivel 180 when they finish which will look a bit bad.

Unfortunately, it does not look like I've added the ability to have an active animation for any of the other facility styles (seat and vendingMachine).

Honestly, I could have designed this whole system to be a bit more modular. A separate behaviour for animations would have been better. We live and learn - I had no idea Megaquarium was going to be such a hit with modders when I wrote a lot of the code! ;)
Khaydar 92 5 Dec, 2024 @ 7:32am 
Well, a couple of months late, but I managed to have the walk in behaviour working. The result is guest not being rendered, likely a processing optization since they are inside the toilet. They never turn visible back even after leaving the facility resulting in hold objects flying over the place.

The vending machine and walk in properties seem to work together as they indeed consume the product for sale.
Last edited by Khaydar; 5 Dec, 2024 @ 7:33am
< >
Showing 1-2 of 2 comments
Per page: 1530 50