Player start falling from the sky after spawning - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Player start falling from the sky after spawning (
/showthread.php?tid=275280)
Player start falling from the sky after spawning -
Soumi - 09.08.2011
The place where the actions takes place in my gamemode is 70/100 created from mapped interiors, it also has Saving positions (X,Y,Z, Facing Angle, Interior, Virtual World) i noticed that if a log inside an interior, i start falling from the sky when i spawn. There is nothing wrong with the floor or the walls they're all solid, Anyone can help me solve this problem? Maybe Freezing the player for a while OnPlayerSpawn will fix this?
Re: Player start falling from the sky after spawning -
JaTochNietDan - 09.08.2011
The problem is that you're probably spawning and falling before the objects are streamed to that client, which means that you're going to fall through them since there is no collision to keep you from falling. Freezing the player for a little to make sure that the objects are loaded before the player falls would work.
Re : Player start falling from the sky after spawning -
Soumi - 09.08.2011
Alright i will try that.
Re: Player start falling from the sky after spawning -
Kingunit - 09.08.2011
Yes, I had also the problem that players are falling down. Just adding a freezer for 3-5 seconds. That's enough and it's working fine =]