Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
MurrayL

Finding animation names for existing models?

Recommended Posts

After an hour of struggling with collision detection, I've finally managed to get a unit to stand inside a field toilet (Empty / Objects (Construction) / Field Toilet) without being pushed outside.

I'd now like to set up a trigger so that it opens the toilet door when it activates. I'm guessing I'll want to use

fieldToilet1 animate ["door",1]

, but I have no idea what the animation is called! I've checked the animations viewer in-game, but it only shows animations for men, not for other objects.

I've tried using the module to open doors in a radius, but it doesn't seem to have any effect on the field toilet.

Is there any way to find out the name of the animation I want? Perhaps some way to print it to chat when I use the 'open door' command, or even just a way to get access to a list of every animation on an object? There's got to be some way to do this, right?

Share this post


Link to post
Share on other sites

Quickest way it to use the config browser and look under the objects userActions, if the door has an action e.g you can open it in game then you will find the animation name in here.

Most door seem to be 'door_#_rot' where # is the door number in the building, seeing the toilet only has one door it will be "door_1_rot".

fieldToilet1 animate ["Door_1_rot", 1];

Share this post


Link to post
Share on other sites

Aha! That's just what I needed, thanks. I had no idea the config browser was a thing until now, and you've probably saved me hours of fist-shaking in the future.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×