Attaching camera to a joint

Blitz3D Forums/Blitz3D Beginners Area/Attaching camera to a joint

Hi, I'm trying to attach the camera to a bone of a model made in milkhape. The bone is called pl_cam_point and is located at the eyes of the human figure model.

here is my code :
; Create Player
player=LoadAnimMesh("content\models\player\player.b3d")	

; Player Camera Setup
playercam=CreateCamera()


cam_point=FindChild(player,"pl_cam_point")


If Not cam_point=0
	
	EntityParent playercam,cam_point 	
	PositionEntity playercam,EntityX(cam_point),EntityY(cam_point),EntityZ(cam_point)
	
Else
	
	DebugLog "Cam_point joint not found!"
	
EndIf



Here is my model:
http://www.goannasvencoop.com/sphinx/FTP/projects/Origin/wip/player.rar


Now, it does not show me the debuglog error, and it does seem that the camera is connected to the model, but it seems to be connected to a bone on his hand or something.


Any help is appreciated!