PlayMobileAmbientAnimations()

Makes a creature act out some animations to look more lifelike.

action PlayMobileAmbientAnimations();

Description

Assigns animation effects to the creature that called this function.

It will have creatures move to other creature and mock conversations, have them wander and so on. This can be used to produce more realistic creature as they are playing the part of a statue.



Remarks

This function is part of the core AI system, and will be automatically be called if the creatures OnSpawn script sets the spawn condition for ambient animations. Meaning:
SetSpawnInCondition(NW_FLAG_AMBIENT_ANIMATIONS);

To assign a creature ambient animations that prevent it from moving use:
SetSpawnInCondition(NW_FLAG_IMMOBILE_AMBIENT_ANIMATIONS);


Version

1.22

See Also

functions: GetSpawnInCondition
categories: Core AI Functions


 author: Tom Cassiotis
 Send comments on this topic.