14 lines
412 B
Plaintext
14 lines
412 B
Plaintext
void main()
|
|
{
|
|
object oPC = GetEnteringObject();
|
|
object oidDest = GetObjectByTag("RIFT_START");
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetItemPossessedBy(oPC, "RiftStone")== OBJECT_INVALID) return;
|
|
|
|
AssignCommand(oPC, ClearAllActions());
|
|
DelayCommand(1.0, AssignCommand(oPC,ActionJumpToObject(oidDest,FALSE)));
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_LIGHTNING_M ), GetLocation(oPC));
|
|
}
|