[BUG] SetPlayerPosFindZ needs to be called twice to work correctly
#1

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?
Reply
#2

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.
Reply
#3

It's work as old version on OnPlayerClickMap as AllowAdminTeleport.
You can use MapAndreas plugin for correctly result
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)