31 lines
790 B
Plaintext
31 lines
790 B
Plaintext
|
|
||
|
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));
|
||
|
|
||
|
}
|
||
|
|