Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-24-2001, 12:56 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Assisstance with attachplayertoobj...

Hey, I am trying to make a boat thing similar to the mini-ships on graal2001....i have it all setup (setshape2 stuff) but when the player is put on it, he is not fully attached, what is wrong?

NPC Code:

if (playertouchsme&&!playerattached) {
attachplayertoobj 0,0;
set playerattached;
playerx=x+5.5;
playery=y+7;
}

if (playerchats&&playerattached) {
if (strequals(#c,leave)) {
detachplayer;
unset playerattached;
playerx=x;
playery=y;
}



i know that I must be doing something wrong, so I would appreciate it if someone could help me with it, thanks
__________________
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:12 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.