#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)); }