Lankhmar_PRC8/_module/nss/cnv_tp_mdhse.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

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