View Single Post
  #11  
Old 09-29-2001, 10:12 PM
JeffTL JeffTL is offline
Registered User
Join Date: Sep 2001
Posts: 374
JeffTL is on a distinguished road
(0,0), by definition, is always the origin, because the origin defines where (0,0) is. Imagine a player character called Zero 0 and an NPC called Origin. Origin has the following script:


NPC Code:

if(playerenters){
timeout=0.5;
setcharprop #c,Zero 0;
}
if(timeout){
if(strequals(#n,Zero 0)){
playerx=x;
playery=y;
}
timeout=0.5;
}



It should, in effect, move player with name Zero 0 to the X and Y of the NPC Origin.
__________________
Reply With Quote