18 lines
345 B
Plaintext
18 lines
345 B
Plaintext
|
#include "mw_teleport_inc"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oUser,
|
||
|
oWP;
|
||
|
string sTag;
|
||
|
float fEFFECT_DURATION = 15.0;
|
||
|
|
||
|
oUser = GetLastUsedBy();
|
||
|
sTag = "DST_" + GetTag(OBJECT_SELF);
|
||
|
oWP = GetWaypointByTag(sTag);
|
||
|
if (GetIsObjectValid(oWP))
|
||
|
{
|
||
|
mw_TeleportWithEffects(oUser, oWP, fEFFECT_DURATION);
|
||
|
}
|
||
|
}
|