35 lines
880 B
Plaintext
35 lines
880 B
Plaintext
|
|
|
|
// Clears all actions and jumps the caller to the provided object.
|
|
// (Useful when this needs to be delayed.)
|
|
void ClearAndJumpToObject(object oDestination);
|
|
void ClearAndJumpToObject(object oDestination)
|
|
{
|
|
ClearAllActions();
|
|
JumpToObject(oDestination);
|
|
}
|
|
|
|
|
|
void main()
|
|
{
|
|
object oSelf = OBJECT_SELF;
|
|
effect eVFX;
|
|
object oTarget;
|
|
|
|
// Get the PC who is in this conversation.
|
|
object oPC = GetPCSpeaker();
|
|
|
|
// Have the PC perform a sequence of actions.
|
|
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_DEAD_FRONT, 1.0, 3.0));
|
|
|
|
// Find the location to which to teleport.
|
|
oTarget = GetWaypointByTag("WP_mhhse1");
|
|
|
|
// Teleport the PC.
|
|
DelayCommand(3.1, AssignCommand(oPC, ClearAndJumpToObject(oTarget)));
|
|
|
|
// Destroy an object (not fully effective until this script ends).
|
|
DelayCommand(3.2, DestroyObject(oSelf));
|
|
}
|
|
|