SA-MP Forums Archive
Aiming underwater - 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: Aiming underwater (/showthread.php?tid=595779)



Aiming underwater - zaibaslr2 - 07.12.2015

Hello,
I've been searching for a way to allow player to aim with weapon underwater.
I can apply aiming animation whenever he holds KEY_AIM and set player's angle accordingly, but then he can only look around in horizontal axis (left and right) but not vertical (up and down).
Any suggestions? Thanks


Re: Aiming underwater - Stanford - 07.12.2015

Did you try teleporting him actually inside the water and not outside? I remember that this caused to make aiming possible underwater. (Put the spawn point inside water, try this and tell us the results)


Re: Aiming underwater - zaibaslr2 - 08.12.2015

Quote:
Originally Posted by Stanford
Посмотреть сообщение
Did you try teleporting him actually inside the water and not outside? I remember that this caused to make aiming possible underwater. (Put the spawn point inside water, try this and tell us the results)
Hello Stanford, thanks for your reply.

Teleporting player underwater makes him fall to the bottom of the ocean and walk on it like on normal ground, but that's not what I want. I want player to be able to still swim in the water.


Re: Aiming underwater - SoFahim - 08.12.2015

Quote:
Originally Posted by zaibaslr2
Посмотреть сообщение
Hello Stanford, thanks for your reply.

Teleporting player underwater makes him fall to the bottom of the ocean and walk on it like on normal ground, but that's not what I want. I want player to be able to still swim in the water.
Not possbile. You cannot do something like that.


Re: Aiming underwater - zaibaslr2 - 08.12.2015

Quote:
Originally Posted by SoFahim
Посмотреть сообщение
Not possbile. You cannot do something like that.
Ok thanks, I guess you are right.