RATDOG/_module/nss/spawn_sc_cmptrig.nss
Jaysyn904 ae152d0814 Added BESIE, MS Moneclature
Added BESIE, Markshire's Nomeclature & started initial setup for commoners in Baleas.
2021-09-01 23:42:36 -04:00

56 lines
1.3 KiB
Plaintext

//
// NESS
// Camp Trigger Scripts v8.1.3
//
//
#include "spawn_functions"
//
object GetChildByTag(object oSpawn, string sChildTag);
object GetChildByNumber(object oSpawn, int nChildNum);
object GetSpawnByID(int nSpawnID);
void DeactivateSpawn(object oSpawn);
void DeactivateSpawnsByTag(string sSpawnTag);
void DeactivateAllSpawns();
void DespawnChildren(object oSpawn);
void DespawnChildrenByTag(object oSpawn, string sSpawnTag);
void DestroyCamp(object oCamp, float fCampDecay, int nSaveState);
//
//
void main()
{
// Initialize Variables
object oSpawned;
string sObject;
int iCount, nCampNumP, nCampNumC;
// Retrieve Script
int nCampTriggerScript = GetLocalInt(OBJECT_SELF, "CampTriggerScript");
// Invalid Script
if (nCampTriggerScript == -1)
{
return;
}
object oCamp = OBJECT_SELF;
object oSpawn = GetLocalObject(OBJECT_SELF, "ParentSpawn");
float fCampDecay = GetLocalFloat(oSpawn, "f_CampDecay");
//
// Only Make Modifications Between These Lines
// -------------------------------------------
// Destroy Camp
if (nCampTriggerScript == 0)
{
DestroyCamp(oCamp, fCampDecay, FALSE);
}
//
// -------------------------------------------
// Only Make Modifications Between These Lines
//
}