Thread: Bridge
View Single Post
  #8  
Old 08-16-2001, 06:04 PM
toad1413 toad1413 is offline
toad@graal:~$ ./Oldbie
Join Date: May 2001
Location: Aust.
Posts: 3,819
toad1413 is on a distinguished road
Send a message via ICQ to toad1413
Quote:
Originally posted by grim_squeaker_x
NPC Code:
if (created) {
setshape2 width,height,{tiles,tiles,tiles...};
dontblock;
drawoverplayer;
timeout=0.1;
}
if (playertouchsme&&!playerattached) {
if (playerx<=x||playerx>=x+width) attachplayertoobj 0,id;
}
if (timeout) {
if (playerx<x||playerx>x+width) detachplayer;
timeout=0.1;
}

I just scripted this and it's meant to be used on server with NPC Server only (attachplayertoobj is a pay server only command anyway), it might not work since I haven't tested it.
ARGH. That never works for me
__________________
Creator of the original 'spam' icon. Worst mistake I ever made on these forums.
Reply With Quote