//teleport by Trito void main() { //Get PC object oPC = GetLastUsedBy(); object oTarget = GetObjectByTag("fr_iwd_gw_portal_invb"); //get the target waypoint destination object oDrop = GetWaypointByTag("fr_iwd_gw_portal_locb"); //clear all actions DelayCommand(0.5, AssignCommand (oPC,ClearAllActions())); DelayCommand(0.7, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_UNSUMMON), oPC)); DelayCommand(6.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_SPELL_MANTLE_USE), oTarget)); DelayCommand(6.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_UNSUMMON), oTarget)); //jump the PC to the destination DelayCommand(1.0, AssignCommand (oPC,JumpToObject(oDrop))); }