SA-MP Forums Archive
Underwater Tunnel Problem - 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: Underwater Tunnel Problem (/showthread.php?tid=662857)



Underwater Tunnel Problem - StRaphael - 13.01.2019

Hello, I am trying to build an underwater tunnel for my server. My question is how to remove the water effect when I'm in the tunnel, under water? Is this possible?
Best regards


Re: Underwater Tunnel Problem - NaS - 13.01.2019

Not possible unfortunately.

You could make a "fake tunnel" by building the tunnel somewhere else and teleporting the player into it/out of it etc.


Re: Underwater Tunnel Problem - ApolloScripter - 13.01.2019

Hello StRaphael water is not a simple "object" in the game that is possible to map, so I do not think it is possible.


Re: Underwater Tunnel Problem - AdamsLT - 13.01.2019

AFAIK spawning a car deeper underwater will make it ignore the water effect.
Toggling spectating for a player on and off while the player is swimming underwater will make them ignore the water effect.
I think teleporting a player deeper underwater might also make them ignore the effect as well. I don't remember, try it out.
There's probably more ways of doing it.

Note: the effect can easily return if you try to do anything, e.g. enter/exit a vehicle, reach the surface, etc. So this isn't really viable or good for most use-cases. Also, this won't remove the screen tint from the water.

I suggest doing what NaS advised as it will be overall better.


Re: Underwater Tunnel Problem - StRaphael - 13.01.2019

Quote:
Originally Posted by AdamsLT
Посмотреть сообщение
AFAIK spawning a car deeper underwater will make it ignore the water effect.
Toggling spectating for a player on and off while the player is swimming underwater will make them ignore the water effect.
I think teleporting a player deeper underwater might also make them ignore the effect as well. I don't remember, try it out.
There's probably more ways of doing it.

Note: the effect can easily return if you try to do anything, e.g. enter/exit a vehicle, reach the surface, etc. So this isn't really viable or good for most use-cases. Also, this won't remove the screen tint from the water.

I suggest doing what NaS advised as it will be overall better.
Thanks for your response! Much appreciated all responses.
Actually, if you go deeper in water, the screen will become black(especially at the ocean portions). I haven't tested yet the variant with Player Spectate mode but I will do a test and will come back with an reply.


Re: Underwater Tunnel Problem - NaS - 13.01.2019

Quote:
Originally Posted by AdamsLT
Посмотреть сообщение
AFAIK spawning a car deeper underwater will make it ignore the water effect.
Toggling spectating for a player on and off while the player is swimming underwater will make them ignore the water effect.
I think teleporting a player deeper underwater might also make them ignore the effect as well. I don't remember, try it out.
There's probably more ways of doing it.

Note: the effect can easily return if you try to do anything, e.g. enter/exit a vehicle, reach the surface, etc. So this isn't really viable or good for most use-cases. Also, this won't remove the screen tint from the water.

I suggest doing what NaS advised as it will be overall better.
You can switch the interior which removes the visible water (it makes everything a lot brighter), but the actual screen effect will unfortunately still be there.


Re: Underwater Tunnel Problem - StRaphael - 13.01.2019

Quote:
Originally Posted by NaS
Посмотреть сообщение
You can switch the interior which removes the visible water (it makes everything a lot brighter), but the actual screen effect will unfortunately still be there.
Yeah, that's a good idea. Thanks!
Not yet tested with Spectate Camera Mode