Code:
symbolsthing player localsector telesecthing newposflex delay=3message startupmessage enteredmessage killedthing t1 linkId=5thing t2 linkId=6thing t3 linkId=7int deaths=0 localint hasgone=0 localtemplate tpl_ghost= template stormtroop=thing theghost localendcodestartup layer=GetLocalPlayerThing();Return;entered:if(hasgone=0){ Sleep(delay); theghost=CreateThing(tpl_ghost, player); TeleportThing(player, newpos); //if this doesn't work, try switching player and newpos hasgone=1;}CreateThing(stormtroop, t1);CreateThing(stormtroop, t2);CreateThing(stormtroop, t3);Return;killed:if((GetSenderRef()==5) || (GetSenderRef()==6) || (GetSenderRef()==7)){ if(GetThingParent(GetSourceRef()) == player); { deaths = deaths+1; if(deaths==3) { TeleportThing(player, theghost); } }}Return;End
The final teleport back to the first player position never works what im I doing wrong?
------------------
The only way to live a good life is to act on your emotions.