PlayObjectAnimation ('object name', 'animationType', animSpecType)
*animationType -- animation type, for example, happy, death, specability, attack00, attack01, etc.
**animationSpecType -- special settings for the animation, IDLE -- plays continuously in a loop, ONESHOT -- plays once, ONESHOT_STILL -- after playing, the object "freezes" in the last pose of the animation. It is effective to combine this with 'death', for example.
I didn't quite understand the second question. What does it mean to set up an ambush?
Auto-translated