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()
|
||||
{
|
||||
@@ -53,8 +53,10 @@ void main()
|
||||
int nChair = 1;
|
||||
string sMyTagName = GetTag(OBJECT_SELF);
|
||||
string sSittableTagName = "CHAIR_" + sMyTagName;
|
||||
object oChair = GetNearestObjectByTag(sSittableTagName, OBJECT_SELF, nChair);
|
||||
object oChair = GetRandomObjectByTag(sSittableTagName, 99.0);
|
||||
ActionMoveToObject (oChair, FALSE);
|
||||
ActionSit(oChair);
|
||||
}
|
||||
DelayCommand(GetRandomDelay(30.0, 60.0), ExecuteScript("npc_sit_stay", OBJECT_SELF));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user