[BUG] SetPlayerPosFindZ needs to be called twice to work correctly - 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: [BUG] SetPlayerPosFindZ needs to be called twice to work correctly (
/showthread.php?tid=334620)
[BUG] SetPlayerPosFindZ needs to be called twice to work correctly -
Programie - 15.04.2012
Hi,
I've added a command to teleport to a position using the ingame map (Using OnPlayerClickMap and SetPlayerPosFindZ).
Teleporting to X and Y works as it should. But the Z position seems to be calculated wrong... I have to execute the command twice to get teleported to the right position.
The first time I get teleported to the same high as the last position. The second time I am at the correct high.
I think that is a bug in SetPlayerPosFindZ?
Re : [BUG] SetPlayerPosFindZ needs to be called twice to work correctly -
mehdi-jumper - 15.04.2012
Yes, SetPlayerPosFindZ bug.
For exemple when I use this function in OnPlayerClickMap, the first time I'm teleported at the good position bug under de map. I have to do this 2 times to be teleported on the ground.
to work correctly -
][Noname][ - 15.04.2012
It's work as old version on OnPlayerClickMap as AllowAdminTeleport.
You can use MapAndreas plugin for correctly result
Re: [BUG] SetPlayerPosFindZ needs to be called twice to work correctly -
Rac3r - 15.04.2012
Quote:
|
Originally Posted by Y-Less
The issue is that if you teleport too far from where you currently are, the objects there are not yet loaded.
|
So it works by getting the Z relative to streamed in objects? (Streamed Default GTA Map)
That's why it's never worked the way it should when I've used it. Good to know.