Recent changes Random page
GAMING
Gaming
 
WoWWiki
Halopedia
FFXIclopedia
Age of Conan
Warhammer Online
Grand Theft Wiki
See more...

Sitting NPC

From NWNWiki

Jump to: navigation, search

This is possible many ways. The most common however is to place this line of code in the NPCs OnSpawn script. This assumes your not changing the Tag of the chair. Also make sure the chairs are Non-Static. If you want the change the tag of the default chair then simply replace the word "Chair" in the script with your custom tag. Include the "".

Add this line to the OnSpawn script of the NPC you want to sit. Be sure to re-save the script under a different name.

ActionSit( GetNearestObjectByTag( "Chair"));

NOTE: Be sure to place this after the WalkWaypoints(); function call. Otherwise the WalkWaypoints may clear his action to sit.

Rate this article:
Share this article: