Initial Upload
Initial Upload
This commit is contained in:
20
_module/nss/convo_script_sit.nss
Normal file
20
_module/nss/convo_script_sit.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "NW_O2_CONINCLUDE"
|
||||
#include "NW_I0_GENERIC"
|
||||
void main()
|
||||
{
|
||||
|
||||
SetSpawnInCondition(NW_FLAG_HEARTBEAT_EVENT); //OPTIONAL BEHAVIOR - Fire User Defined Event 1001
|
||||
SetListeningPatterns();
|
||||
WalkWayPoints();
|
||||
GenerateNPCTreasure(); //* Use this to create a small amount of treasure on the creature
|
||||
SignalEvent(OBJECT_SELF, EventUserDefined(5000));//Set up listen patterns for Guards
|
||||
{
|
||||
string sMyTagName = GetTag(OBJECT_SELF);
|
||||
string sSittableTagName = "CHAIR_" + sMyTagName;
|
||||
int nChair = 1;
|
||||
object oChair;
|
||||
oChair = GetNearestObjectByTag(sSittableTagName, OBJECT_SELF, nChair);
|
||||
ActionSit(oChair);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user