16 lines
464 B
Plaintext
16 lines
464 B
Plaintext
|
//teleport by Trito
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
//Get PC
|
||
|
object oPC = GetLastUsedBy();
|
||
|
//get the target waypoint destination
|
||
|
object oDrop = GetWaypointByTag("fr_iwd_uz_portal_loc");
|
||
|
//clear all actions
|
||
|
DelayCommand(0.5,AssignCommand (oPC,ClearAllActions()));
|
||
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_UNSUMMON), oPC);
|
||
|
//jump the PC to the destination
|
||
|
DelayCommand(1.0,AssignCommand (oPC,JumpToObject(oDrop)));
|
||
|
|
||
|
}
|