Aschbourne_PRC8/_module/nss/tmp_spawn_usecat.nss
GetOffMyYarn 69879d6957 Areas and Fixes
Added CCOH and missing areas
Changed some areas to be craftable,
Fixed some on death issues,
Fixed the Gaurd
2024-08-30 11:38:44 -04:00

20 lines
654 B
Plaintext

/**
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);
}