17 lines
625 B
Plaintext
17 lines
625 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"
|
|
void main()
|
|
{
|
|
ClearAllActions();
|
|
object oWalk = GetRandomObjectByTag("CityNoble", 50.0);
|
|
ActionForceMoveToObject (oWalk, FALSE, 1.0f, 120.0f);
|
|
int nTime = Random(60) + 60;
|
|
float fTime = IntToFloat(nTime);
|
|
DelayCommand(fTime, ExecuteScript("re_rndwayp_go", OBJECT_SELF));
|
|
}
|
|
|