Attaching camera with bone?
#1

I am not sure, I've tried but, is there any possibility to attach camera to object and then attach it to the player's bone?
Reply
#2

Hmmm, well as the SetPlayerAttachedObject page on the wiki says, it is a different function from the CreateObject or CreatePlayerObject pools. So pretty much, you can't attach already created objects to a player's bone. You must create the object by attaching it to the player. Even then, SetPlayerAttachedObject does not return an object id, it returns either a 0 or 1 on failure or success respectively. So from this, I would have to say that it isn't possible to attach a player's camera to their bone specifically, but you can use AttachObjectToPlayer and if you can find the appropriate offsets, to recreate as if it's attached to their bone, then you can easily make your own function to attach the camera to a player's boneid. This probably isn't what you want to hear, but I hope I helped in some way.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)