SA-MP Forums Archive
Shaking Player's Screen - 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: Shaking Player's Screen (/showthread.php?tid=353042)



Shaking Player's Screen - Littlehelper - 22.06.2012

Title says it all.
How can i shake player's screen? i tried using SetPlayerDrunkLevel but that shakes very slowly, is there any other way to do it more faster?
Thanks.


Re: Shaking Player's Screen - [MM]RoXoR[FS] - 22.06.2012

Try using camera functions.


Re: Shaking Player's Screen - Littlehelper - 22.06.2012

what camera fucntions?
Anybody knows how to do this?


Re: Shaking Player's Screen - Lorenc_ - 22.06.2012

Increase the drunk level?


Respuesta: Shaking Player's Screen - admantis - 22.06.2012

He means shaking it like an earthquake, try setting the player drunk level repeatedly (on a low interval timer), I think this may work.


Re: Shaking Player's Screen - Cxnnor - 22.06.2012

Just set the level to increase when your player drinks an alcoholic beverage, if you need a code, reply and I am sure I can make one.


Re: Shaking Player's Screen - MP2 - 23.06.2012

I believe I once achieved this by setting a player's drunk level to about 2020 on a fast timer (levels under 2000 stop the camera from swaying), but I doubt it would work for players with certain a FPS.


Re: Shaking Player's Screen - Littlehelper - 23.06.2012

Quote:
Originally Posted by Cxnnor
Посмотреть сообщение
Just set the level to increase when your player drinks an alcoholic beverage, if you need a code, reply and I am sure I can make one.
I dont even need it for that cause.....

Quote:
Originally Posted by MP2
Посмотреть сообщение
I believe I once achieved this by setting a player's drunk level to about 2020 on a fast timer (levels under 2000 stop the camera from swaying), but I doubt it would work for players with certain a FPS.
I'll try that and reply the result.


Re: Shaking Player's Screen - MP2 - 23.06.2012

I did some testing with that, sucked. Oh well.


Re: Shaking Player's Screen - Littlehelper - 23.06.2012

It does not shake like i want it to, i want it to shake fast because i have a new idea of creating realistic vehicle handling that shake player(s) screen when they go over certain amount of speed...
I hope you catch my drift.