AttachCameraToObject offset? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: AttachCameraToObject offset? (
/showthread.php?tid=659023)
AttachCameraToObject offset? -
Kontrol - 20.09.2018
When using AttachCameraToObject is there anyway to offset the camera slightly. so the camera isnt right in the middle of the object?
Would i need to use timers and keep updating the players camera pos?
I'm after creating a plane like system like PUBG
regards
Re: AttachCameraToObject offset? -
ReD_HunTeR - 20.09.2018
Yes, I think you have to use timers and keep updating players camera position for that, there is not other way as far as i know.
or maybe put other object which is not visible at all, put camera behind that object and move it with the plane
Re: AttachCameraToObject offset? -
Kontrol - 20.09.2018
Good idea, do you know of any invisible object IDs?
Re: AttachCameraToObject offset? -
NaS - 20.09.2018
19300 is an empty model for that purpose.
Re: AttachCameraToObject offset? -
Kontrol - 20.09.2018
Just tried attaching it to a invisible object slightly above. but all the camera does is sink till it hits the visible object.
Re: AttachCameraToObject offset? -
v1k1nG - 20.09.2018
If you are using always the same coords you do not need all that. Just get your preferred 1st and last camera coords using a map editor, interpolate camera playing with the timing and coords.