
08-16-2001, 06:04 PM
|
|
toad@graal:~$ ./Oldbie
|
Join Date: May 2001
Location: Aust.
Posts: 3,819
|
|
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.
|
|
|
|