Script fixes, additions, and area changes
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//:: 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"
|
||||
void main()
|
||||
{
|
||||
@@ -49,11 +49,14 @@ void main()
|
||||
//BeginConversation();
|
||||
//}
|
||||
ClearAllActions();
|
||||
int nChair = 1;
|
||||
int nChair = 50;
|
||||
string sMyTagName = GetTag(OBJECT_SELF);
|
||||
string sSittableTagName = "CHAIR";
|
||||
object oChair = GetNearestObjectByTag(sSittableTagName, OBJECT_SELF, nChair);
|
||||
object oChair = GetRandomObjectByTag(sSittableTagName, 99.0);
|
||||
ActionMoveToObject (oChair, FALSE);
|
||||
ActionSit(oChair);
|
||||
|
||||
}
|
||||
DelayCommand(GetRandomDelay(180.0, 240.0), ExecuteScript("npc_sit_chair", OBJECT_SELF));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user