Hello, I was wondering which is the best way to set up the following interaction:
1. Player uses locker
2. Locker plays open animation
3. Container UI opens
4. Player exits container UI
5. Locker plays close animation
Well, I pretty much figured it out until step 3, but I have no idea how to set up the close animation. I was thinking about calling an actionlist when the player clicks the close button, but what happens when I have multiple lockers? or maybe even a chest? Can it be done?
Thanks a bunch!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @TehMasterdown.
You can do this by using ActionList parameters do dynamically alter which object you want to animate in an Object: Animate Action.
The only other thing to be mindful of is that ActionList parameter values won't be included in save files - so you'll need to prevent the player from being able to save while the container is open. This can be done with a pair of Engine: Manage systems Action to lock/unlock saving when the container menu is turned on/off.
Thank you SO much Chris! It works like a charm.