Posts: 1,059
Threads: 86
Joined: Sep 2010
Reputation:
0
15.08.2011, 17:32
(
Последний раз редактировалось grand.Theft.Otto; 15.08.2011 в 19:36.
)
Does anyone have a code for a name tag that can be used for bots that is just like the player name tag over their heads ?
Thanks.
Posts: 307
Threads: 63
Joined: Aug 2010
Reputation:
0
You need also to attach the 3d text label to bot...
EDIT: And change from CreatePlayer3d... To Create3d... Because you are creating label that will be shown only for bot (?)
Posts: 1,059
Threads: 86
Joined: Sep 2010
Reputation:
0
@Jeffry, when I use that, it interferes with other text labels, for example I have a text label named Ammunation infront of one of my ammunation stores and it attaches the Ammunation label above the bot. If I disable all text labels except for the one you have in the code above, nothing shows above the bot :/
Posts: 1,059
Threads: 86
Joined: Sep 2010
Reputation:
0
I know for sure this should work, but it's not :S
Maybe something is interfering again but not sure
Posts: 1,059
Threads: 86
Joined: Sep 2010
Reputation:
0
Yup lol, that's exactly what I wanted.
So the code you gave me is the result in the picture?
EDIT:
I fixed it lol, the solution was to remove the attach3dtext etc... from OnPlayerSpawn and add your code under OnPlayerConnect, pleox.
Thanks everyone !
Posts: 1,250
Threads: 92
Joined: Mar 2011
Reputation:
0
Check the virtual world of your NPC and your player. Because the label is created in virtual world "0".
Posts: 1,059
Threads: 86
Joined: Sep 2010
Reputation:
0
Haha, thanks I edited my last post because I fixed it but the solution was to remove the attach3dtext etc... from OnPlayerSpawn and add your code under OnPlayerConnect, pleox.
Thanks everyone !