Animation Function Category

Animations performed by NPCs when placed within one of NPCs script event handlers.



Functions

NameBrief Description
AnimActionCloseRandomDoorCauses an NPC to close a nearby open door.
AnimActionFindFriendCauses an NPC to find a friend and engage in conversation with them.
AnimActionFindPlaceableFind a placeable within the given distance and interact with it.
AnimActionGetUpFromChairGet up from a chair if we're sitting.
AnimActionGoHomeIf it is night, go back to our home waypoint, if we have one. This is only meaningful for mobile NPCs who would have left their homes during the day.
AnimActionGoInsideGo through a nearby door if appropriate.
AnimActionGoOutsideLeave area if appropriate.
AnimActionGoToStopGo to a nearby waypoint or placeable marked with the tag "NW_STOP".
AnimActionLeaveHomeIf it is day, leave our home area, if we have one. This is only meaningful for mobile NPCs.
AnimActionLookAroundPlay animation of looking around to left and right.
AnimActionPlayRandomAnimationPlay a random animation.
AnimActionPlayRandomBasicAnimationPlay a random animation that all creatures should have.
AnimActionPlayRandomCloseRangePerform a random close-range action.
AnimActionPlayRandomGoodbyePlay a random farewell animation and possibly voicechat.
AnimActionPlayRandomGreetingPlay a greeting animation and possibly voicechat.
AnimActionPlayRandomImmobilePerform a strictly immobile action.
AnimActionPlayRandomInteractAnimationInteract with a placeable object.
AnimActionPlayRandomMobilePerform a mobile action.
AnimActionPlayRandomTalkAnimationPlay a random talk gesture animation.
AnimActionPlayRandomUncivilizedPerform a mobile action for an uncivilized creature.
AnimActionRandomMoveAwayRandomly move away from an object the specified distance.
AnimActionRestIf injured find the best place to rest, based on the mobility setting, and go rest there.
AnimActionShakeHeadPlay animation of shaking head "no" to left and right.
AnimActionSitInChairSit in a random nearby chair if available.
AnimActionStartInteractingStart interacting with a placeable object.
AnimActionStartTalkingStart talking with a friend.
AnimActionStopInteractingStop interacting with a placeable object.
AnimActionStopTalkingStop talking to the given friend.
AnimActionTurnAroundTurn around to face a random direction.

NOTE: The contents of this function have been commented out. So it will do nothing when called.
AnimInitializationGeneral initialization for animations.
PlayMobileAmbientAnimations_AvianAvian creatures will fly around randomly.
PlayMobileAmbientAnimations_NonAvianThis function should be used for mobile NPCs and monsters other than avian ones.

See Also

Function Categories