Thread: Door Warp
View Single Post
  #3  
Old 03-22-2007, 07:14 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
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);

__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote