I recently started trying out Lua and for the most part it makes sense and I seem to be understanding it. However what I want to try is completely evading me.
What I am effectively trying to do is get the player’s viewpoint to lock on to the ‘eyes’ bone of the player model - rather like the NPC Camera tool by kilburn, but rather than for an NPC, for the actual player - and permanently. I sort-of know the various commands for getting third person and such, but I don’t seem to be able to find anything that would help me get the attachment of the player. I guess ‘entity:lookupattachment’ is what I am thinking of, but does an active player count as an entity?
I’m sure there is a really simple slution that I have completely glossed over, but for the moment I’m stumped…!
Any illumination on the subject would be greatly appreciated.