Initial commit
Initial commit [v9.7]
This commit is contained in:
30
_module/nss/cnv_spn_kumal.nss
Normal file
30
_module/nss/cnv_spn_kumal.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
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));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user