Lankhmar_PRC8/_module/nss/cnv_spn_kumal.nss

31 lines
790 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
void main()
{
object oTarget;
object oSpawn;
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Only fire once.
if ( GetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF)) )
return;
SetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);
// Spawn "kumal".
oTarget = GetWaypointByTag("WP_Spawn_Kumal");
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "kumal", GetLocation(oTarget));
// Have the spawn perform a sequence of actions.
AssignCommand(oSpawn, ActionWait(2.0));
// Have the spawn perform a sequence of actions.
AssignCommand(oSpawn, ActionMoveToObject(GetNearestObjectByTag("WP_Mv_Kml")));
// Cutscene functions:
DelayCommand(3.0, SetCutsceneMode(oPC, FALSE));
}