Noob question: how to make on-foot underwater spawn make player stick to ocean floor? - 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: Noob question: how to make on-foot underwater spawn make player stick to ocean floor? (
/showthread.php?tid=358691)
Noob question: how to make on-foot underwater spawn make player stick to ocean floor? -
kaisersouse - 11.07.2012
I keep trying to make an underwater spawn that lets player run around on ocean floor. Instead, the player floats to the surface every time and I don't want that.
I know this can be done, I've just forgotten how
Please help? Thanks!
Re: Noob question: how to make on-foot underwater spawn make player stick to ocean floor? -
Warfish - 11.07.2012
it is possible when you spawn a new vehicle underwater and then put the player in the vehicle, then you can drive on the ocean floor, but On foot.. I don't know..
Re: Noob question: how to make on-foot underwater spawn make player stick to ocean floor? -
sleepysnowflake - 11.07.2012
Spawn him in a vehicle, make him exit the vehicle, destroy the vehicle and you're all set.
Re: Noob question: how to make on-foot underwater spawn make player stick to ocean floor? -
Lordzy - 11.07.2012
Spawn the player with a vehicle,and then remove the vehicle from player.
I hope so...
Re: Noob question: how to make on-foot underwater spawn make player stick to ocean floor? -
MP2 - 11.07.2012
Vehicles aren't needed. All you have to do is SetPlayerPos under the water from land. It might not work under OnPlayerSpawn or if they are in the air, never really tested it.
Re: Noob question: how to make on-foot underwater spawn make player stick to ocean floor? -
Psymetrix - 11.07.2012
Set there position from dry land, as said before. Setting them under water while there in water gives the same effect as diving under.