generated from Jaysyn/ModuleTemplate
20 lines
671 B
Plaintext
20 lines
671 B
Plaintext
/////////////////////////////////////
|
|
// Dragon's Edge
|
|
// by Charly Carlos
|
|
/////////////////////////////////////
|
|
// Conversation script placed in every first conversation node for NPC's that
|
|
// are sitting. Makes the creature continue to sit in the chair during conversation.
|
|
// Make sur to remove nw_walk_wp in the End Conversation -> Normally. Or use
|
|
// a script there that does not use WalkWayPoints().
|
|
/////////////////////////////////////
|
|
void main()
|
|
{
|
|
object oChair = GetNearestObjectByTag("Chair");
|
|
//Check if anyone is sitting in the chair
|
|
if(!GetIsObjectValid(GetSittingCreature(oChair)))
|
|
{
|
|
ClearAllActions();
|
|
ActionSit(oChair);
|
|
}
|
|
}
|