Aantioch_Infernum/_module/nss/npc_sit_woodenbe.nss
EpicValor 24b959be8b Sarum City enhancements
Adjusted commoner type npc behavior scripts.
2023-09-11 17:11:52 -05:00

22 lines
791 B
Plaintext

//::///////////////////////////////////////////////
//:: npc_sit_stay
//:://////////////////////////////////////////////
/*Goes on the OnSpawn and OnConversation script of the NPC that you want to stay <span class="highlight">seated</span>*/
#include "nw_i0_spells"
#include "NW_I0_GENERIC"
#include "x0_i0_anims"
void main()
{
ClearAllActions();
SetAILevel (OBJECT_SELF, AI_LEVEL_HIGH);
string sSittableTagName = "Woodenbench";
object oChair = GetRandomObjectByTag(sSittableTagName, 120.0);
ActionForceMoveToObject (oChair, FALSE, 1.0f, 120.0);
ActionSit(oChair);
int nTime = Random(210) + 90;
float fTime = IntToFloat(nTime);
DelayCommand(fTime, ExecuteScript("npc_sit_woodenbe", OBJECT_SELF));
}