HiddenTradition_PRC8/_module/nss/at_spawninqcata.nss
2024-06-20 15:47:42 -04:00

34 lines
542 B
Plaintext

#include "nw_i0_plot"
void main()
{
object oPC = GetEnteringObject();
object oCatapult = GetObjectByTag("it_Inq_Catapult");
if (!GetIsPC(oPC)) return;
//make sure only one catapult is spawned per party
int CatapultDoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (CatapultDoOnce==TRUE) return;
SetPLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
// spawn Inq catapult
object oTarget;
object oSpawn;
oTarget = GetWaypointByTag("WP_Inq_Catapult");
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "catplt001", GetLocation(oTarget));
}