PWE_PRC8/_module/nss/npc_sit_onconvr1.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

34 lines
1.0 KiB
Plaintext

//::///////////////////////////////////////////////
//:: On Conversation
//:: speaksitting
//:: Created By: Hillary Skeryanc-Mann
//:: Created On: March 22, 2003
//:://////////////////////////////////////////////
void main()
{
if(GetCommandable(OBJECT_SELF)){
{
BeginConversation();
}
ClearAllActions();
string sMyTagName = GetTag(OBJECT_SELF);
string sChairTag = "SitChair_009" + sMyTagName;
string sFloorTag = "FLOOR_" + sMyTagName;
object oSitplace = GetNearestObject();
if (GetTag (oSitplace) == sChairTag)
{
int nChair = 1;
object oChair;
oChair = GetNearestObjectByTag(sChairTag, OBJECT_SELF, nChair);
ActionSit(oChair);
}
else if (GetTag (oSitplace) == sFloorTag)
{
int nChair = 1;
object oChair;
oChair = GetNearestObjectByTag(sFloorTag, OBJECT_SELF, nChair);
ActionDoCommand( ActionPlayAnimation( ANIMATION_LOOPING_SIT_CROSS,0.0,4000.0) ) ;
}
}
}