Initial commit. Updated release archive.
This commit is contained in:
17
_module/nss/mw_sportal_onuse.nss
Normal file
17
_module/nss/mw_sportal_onuse.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
#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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user