generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
19
_module/nss/de1_con_sit.nss
Normal file
19
_module/nss/de1_con_sit.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
/////////////////////////////////////
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user