how to script animated 3ds max door in Unity??

I had model my house and the door i used is pivot door that in 3ds max and i had setting the animation? im new to unity so anyone can help me with how to trigger the animation?

How to trigger an action and how to play an animation are two different things.

Let’s start with the last one, easy : animation.Play(“DoorOpening”) or whatever the name is. (Make sure you have an animation component and the DoorOpening animation).

The trigger now. You need a gameObject with a collider component with the trigger checkbox to true. Then, on the same gameObject, you need a script implementing a trigger function (OnTriggerXXX). In your case, OnTriggerEnter. Inside, play the animation as seen above.