/** Use this template to create an NPC OnSpawn script for a NPC which will fire a catapult during a battle sequence. YOU WILL NEED A VERSION OF THIS SCRIPT FOR EACH CATAPULT TYPE (EACH UNIQUE TAG) YOU WISH TO FIRE DURING THE BATTLE. BE CAREFUL TO MATCH THE CORRECT SCRIPT TO THE CORRECT NPC. USE "Save As" TO QUICKLY COPY SCRIPTS. J.D. Robertson, 2002 */ void main() { // TODO: Replace "CATAPULT_TAG" with the tag of the catapult you // are fireing object catapult = GetNearestObjectByTag("BattleCatapultlycan"); if (GetIsObjectValid(catapult)) SetLocalObject(OBJECT_SELF, "MyCatapult", catapult); }