SA-MP Forums Archive
Attach camera to object without spectate mode - 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: Attach camera to object without spectate mode (/showthread.php?tid=347613)



Attach camera to object without spectate mode - Incubator - 02.06.2012

When I try to attach a player's camera to an object (model 19300, the one from flymode.pwn) without using TogglePlayerSpectating the screen flashes insanely and then the game crashes. Try this yourself, just comment the TogglePlayerSpectating in flymode.pwn. How do I attach a camera to an object without forcing the player into spectate mode?

* Could it be the model of the object that interferes with the camera? Is there another model I should try?


Re: Attach camera to object without spectate mode - CyNiC - 02.06.2012

I can use the fs without use TogglePlayerSpectating.


Re: Attach camera to object without spectate mode - Incubator - 02.06.2012

The fuck, restarted my computer and it now works. My GTA was probably was bugged or something. Thanks for the effort though.