Ich würde das Problem durch kopieren und modifizieren des Template – Skipt Doors.wdl lösen:
ACTION teleporter
{
MY.EVENT = _tele_event;
MY.ENABLE_IMPACT = ON;
// enable operating on stepping onto (for platform teleporters)
if(MY._TRIGGER_RANGE == 1) { MY.ENABLE_SONAR = ON; }
// enable mouse text
if(MY.STRING1 != NULL) { MY.ENABLE_TOUCH = ON; }
}
function _tele_event()
{
if( EVENT_TYPE == EVENT_SONAR || EVENT_TYPE == EVENT_IMPACT)
{
wait(1);
/* -----------------Jürgen
if (your.Skill20 == 1)
// Skill20 von Entity (you) oder v. Teleport (my)
![[Roll Eyes]](images/icons/rolleyes.gif)
{
my.Skill1= Ziel.x;
my.Skill2= Ziel.y;
my.Skill3= Ziel.z;
}
...
--------------------------*/
YOUR.X = MY.SKILL1; // displace the entity
YOUR.Y = MY.SKILL2;
YOUR.Z = MY.SKILL3;
YOUR.PAN = MY.SKILL5;
CAMERA.AMBIENT += 30; // a short flash
PLAY_SOUND teleport_snd,50;
waitt(2);
CAMERA.AMBIENT -= 20;
waitt(2);
CAMERA.AMBIENT -= 10;
}
}
Gruß
J.