But if he wants a script to warp a player elsewhere:
Depends on the situation and has a small delay.
PHP Code:
function onCreated() {
setimg("door");
setshape(1,32,32);
}
function onActionTouch() {
setlevel2(levelname,newx,newy);
}
//#CLIENTSIDE
function onPlayerTouchesMe() {
triggeraction(this.x,this.y,"touch","touch");
}
No delay at all:
PHP Code:
function onCreated() {
setimg("door");
setshape(1,32,32);
}
function onPlayerTouchesMe() {
setlevel2(levelname,newx,newy);
}