North Korea 0 Posted July 14, 2020 Share Posted July 14, 2020 I have created a camera to spectate players and I would like to add that you can move the camera around with your mouse as you normally would. This is my code so far: int camera; public void StartSpectate(object[] args) { Player target = Entities.Players.All.First(p => p.RemoteId == (ushort)Convert.ToUInt32(args[0])); Player.LocalPlayer.FreezePosition(true); camera = RAGE.Game.Cam.CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", target.Position.X, target.Position.Y, target.Position.Z, 0f, 0f, 0f, 40f, false, 0); RAGE.Game.Cam.SetCamActive(camera, true); RAGE.Game.Cam.RenderScriptCams(true, false, 0, false, true, 0); RAGE.Game.Cam.AttachCamToEntity(camera, target.Handle, 0f, -7.5f, 2.5f, true); RAGE.Game.Cam.PointCamAtEntity(camera, target.Handle, 0f, 0f, 0f, true); RAGE.Game.Entity.AttachEntityToEntity(Player.LocalPlayer.Handle, target.Handle, 0, 0f, 0f, 5f, 0f, 0f, 0f, true, false, false, false, 0, false); } Any ideas? Link to post Share on other sites
fases 0 Posted October 11, 2020 Share Posted October 11, 2020 anyone? Link to post Share on other sites
MihaiADV 4 Posted January 15 Share Posted January 15 On 10/11/2020 at 9:00 PM, fases said: anyone? Da-mi un PM pe discord MihaiADVᐟᴸᶜ#2191 Link to post Share on other sites
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