HoS_PRC8/_mod/_module/nss/oe_barrier_eject.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

19 lines
418 B
Plaintext

void fnEject(object oPC,object oDest)
{
if (GetArea(oPC)!=GetArea(oDest)||GetDistanceBetween(oPC,oDest)>1.0)
{ // teleport
AssignCommand(oPC,ClearAllActions(TRUE));
AssignCommand(oPC,JumpToObject(oDest));
DelayCommand(0.5,fnEject(oPC,oDest));
} // teleport
}
void main()
{
object oPC=GetEnteringObject();
object oEject=GetNearestObjectByTag("BARRIER_EJECT",oPC,1);
fnEject(oPC,oEject);
}