Shargast_PRC8/_module/Chapter 2/nss/pc_only_trans.nss
Jaysyn904 66a0a3e043 Initial commit
Initial commit.
2024-08-03 14:13:18 -04:00

20 lines
786 B
Plaintext

// OnAreaTransitionClick(Door Transition)/OnClick(Transition Trigger) script ...
#include "x0_i0_transport"
void main()
{
object oClicker = GetClickingObject();
AssignCommand(oClicker, ClearAllActions(TRUE));
if(GetIsPC(oClicker))
// Transport oClicker and Associates ...
TransportToLocation(oClicker, GetLocation(GetTransitionTarget(OBJECT_SELF)));
// Transport ALL of oClicker's Party Members, including PCs and their Associates ...
//TransportAllToLocation(oClicker, GetLocation(GetTransitionTarget(OBJECT_SELF)));
else
{
// Define some unique object as the Jump destination ...
object oDestination = GetObjectByTag("Unique_Tag_of_Object");
AssignCommand(oClicker, JumpToObject(oDestination));
}
}