AnimActionPlayRandomImmobile()
From NWN Lexicon
Perform a strictly immobile action.
Contents |
[edit] Description
Perform a strictly immobile action.
Possible actions include:
- Turn towards a nearby unoccupied friend and "talk".
- Turn towards a nearby placeable and interact.
- Turn around randomly.
- Play a random animation.
[edit] Remarks
Uses a random 12 plus other particulars to determine what to do.
[edit] Requirements
#include "x0_i0_anims"
[edit] Version
???
[edit] Example
// If the last thing the NPC perceived is a PC, then have the NPC look busy. // This script should go in the NPC's OnPerception event. #include "x0_i0_anims" void main() { object oPC = GetLastPerceived(); if (GetIsPC(oPC)) { AnimActionPlayRandomImmobile(); } }
[edit] See Also
functions: | AnimActionPlayRandomMobile |
author: Baragg, editor: Mistress, contributor: Kookoo