SA-MP Forums Archive
[Include] OnPlayerCamera...v.0.1 - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] OnPlayerCamera...v.0.1 (/showthread.php?tid=325273)



OnPlayerCamera...v.0.1 - Meta - 12.03.2012

ATTENTION: This Include only works with SA-MP 0.3e RC2 and higher!

~~~ OnPlayerCamera... v0.1a ~~~
Hello guys!
This is just some callback-include I made after I read this.

With this Inlcude you can call OnPlayerCameraMoved(playerid) and OnPlayerCameraLookMoved(playerid) after the movement of a player's positon or LookAtPosition has been done (InterpolateCameraPos and InterpolateCameraLookAt).

Here you go:
Download from my page.
Pastebin.

Greetz


PS: Critics and comments are welcome


AW: OnPlayerCamera...v.0.1 - Drebin - 12.03.2012

Nice! Thank you


Re: OnPlayerCamera...v.0.1 - MP2 - 12.03.2012

You do realise this won't be accurate?


AW: OnPlayerCamera...v.0.1 - Meta - 12.03.2012

why MP2


Re: OnPlayerCamera...v.0.1 - DreveN - 12.03.2012

Very good


Re: OnPlayerCamera...v.0.1 - Whitetiger - 12.03.2012

why don't you use GetPlayerCameraPos in OnPlayerUpdate? if you pause the timer will mess up and the callback will not work, and there should be a parameters for old/new positions the callbacks


Re: OnPlayerCamera...v.0.1 - MP2 - 12.03.2012

If GetPlayerCameraPos worked with this, that would be really nice. Test it, Meta.


AW: OnPlayerCamera...v.0.1 - Meta - 13.03.2012

Okay, when I return home, I gotta do that stuff

EDIT: ok, lol, edited from my phone. Try the pastebin version, hope there are no mistakes


Re: OnPlayerCamera...v.0.1 - DarkScripter - 14.03.2012

Not bad.


Respuesta: OnPlayerCamera...v.0.1 - Kurama - 14.03.2012

Does this work? I didn't see these callbacks en the newest SA-MP header files.


Re: OnPlayerCamera...v.0.1 - Awankz - 15.03.2012

Nice Work