Category:Animation Functions

From NWN Lexicon
Jump to: navigation, search

Animation Function Category

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



Functions

Name Brief Description

AnimActionCloseRandomDoor

Causes an NPC to close a nearby open door.

AnimActionFindFriend

Causes an NPC to find a friend and engage in conversation with them.

AnimActionFindPlaceable

Find a placeable within the given distance and interact with it.

AnimActionGetUpFromChair

Get up from a chair if we're sitting.

AnimActionGoHome

If 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.

AnimActionGoInside

Go through a nearby door if appropriate.

AnimActionGoOutside

Leave area if appropriate.

AnimActionGoToStop

Go to a nearby waypoint or placeable marked with the tag "NW_STOP".

AnimActionLeaveHome

If it is day, leave our home area, if we have one. This is only meaningful for mobile NPCs.

AnimActionLookAround

Play animation of looking around to left and right.

AnimActionPlayRandomAnimation

Play a random animation.

AnimActionPlayRandomBasicAnimation

Play a random animation that all creatures should have.

AnimActionPlayRandomCloseRange

Perform a random close-range action.

AnimActionPlayRandomGoodbye

Play a random farewell animation and possibly voicechat.

AnimActionPlayRandomGreeting

Play a greeting animation and possibly voicechat.

AnimActionPlayRandomImmobile

Perform a strictly immobile action.

AnimActionPlayRandomInteractAnimation

Interact with a placeable object.

AnimActionPlayRandomMobile

Perform a mobile action.

AnimActionPlayRandomTalkAnimation

Play a random talk gesture animation.

AnimActionPlayRandomUncivilized

Perform a mobile action for an uncivilized creature.

AnimActionRandomMoveAway

Randomly move away from an object the specified distance.

AnimActionRest

If injured find the best place to rest, based on the mobility setting, and go rest there.

AnimActionShakeHead

Play animation of shaking head "no" to left and right.

AnimActionSitInChair

Sit in a random nearby chair if available.

AnimActionStartInteracting

Start interacting with a placeable object.

AnimActionStartTalking

Start talking with a friend.

AnimActionStopInteracting

Stop interacting with a placeable object.

AnimActionStopTalking

Stop talking to the given friend.

AnimActionTurnAround

Turn around to face a random direction.

NOTE: The contents of this function have been commented out. So it will do nothing when called.

AnimInitialization

General initialization for animations.

PlayMobileAmbientAnimations_Avian

Avian creatures will fly around randomly.

PlayMobileAmbientAnimations_NonAvian

This function should be used for mobile NPCs and monsters other than avian ones.