nordi Posted March 10, 2015 Share Posted March 10, 2015 Hey So I'm trying to create a simple first person view. In order to do so: I create my camera, set its position (which is based on the offset position of the player's model), and then I active the camera. So far no problem. However: when I move my player around, the camera do not move but stays where it initialy spawned. I then found a native which does exactly what I want: "ATTACH_CAM_TO_PED", the problem is when I use this native, I can't set the camera position (or to be more accurate: I set the camera position, but it's being ignored). Do you have a fix for this ? stretchercam.Position = Player.Character.GetOffsetPosition(new Vector3(0f, 0.24f, 0.52f)); GTA.Native.Function.Call("ATTACH_CAM_TO_PED", stretchercam, Player.Character); stretchercam.Activate(); Thanks. Link to comment Share on other sites More sharing options...
Jitnaught Posted March 10, 2015 Share Posted March 10, 2015 You have to use the SET_CAM_ATTACH_OFFSET native to set the position (which isn't in world coordinates btw.) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now