Thread: Bridge
View Single Post
  #7  
Old 08-16-2001, 05:12 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
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.
__________________

Reply With Quote