![]() |
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: i know that I must be doing something wrong, so I would appreciate it if someone could help me with it, thanks :D |
attachplayertoobj 0,id;
attaches the player to the current npc (identified by id) (as long as it's in the format playerindex, npcindex) |
Jadis:
What does attachtoobj do? it sets a flag if (playerattached); But why would that help? Couldn't you just set a flag instead of using attach player? Or does it move the player along with the npc's movements? |
Quote:
it should attach the player, but I am assuming that I gave it the wrong id...but how do i find out the npc's id? |
no, you actually use 'id' as the variable
|
Quote:
|
Quote:
thanks for your help kyle :) |
no problem
|
Quote:
|
Quote:
|
Isn't 0 the only current id you can use (0 for npc)?
|
naw...try this:
NPC Code: every NPC on the server (or offline for that matter) is given an index, in order of creation I think. When I tried that offline my NPCs had indexes in the thousands... |
Quote:
|
| All times are GMT +2. The time now is 11:15 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.