06.01.2010, 20:54
Let me explain:
You want to set a player to x, y, z.
Now you could prestream the objects at this positon
This is what I mean:
This is what you mean:
I had the system with streaming objects at the defined position before setting his no position and it was much better than setting the player to the position and streaming after this...
Do you know what I mean?
You want to set a player to x, y, z.
Now you could prestream the objects at this positon
This is what I mean:
pawn Код:
stock SetPlayerPosEx(playerid,Float:x,Float:y,Float:z)
{
Streamer_UpdateObjectsEx(playerid,x,y,z);
SetPlayerPos(playerid,x,y,z);//Player will get set to position x y z and objects are already streamed.
}
pawn Код:
stock SetPlayerPosEx(playerid,Float:x,Float:y,Float:z)
{
SetPlayerPos(playerid,x,y,z);//Player will get set to position x y z and objects are not streamed.
Streamer_UpdateObjects(playerid);
/*Now you will stream the objects. BUT, the player hasn't update his position if I'm correct, because this only gets updated when OnPlayerUpdate is called.
So, what does this mean? If this is correct what I said about OnPlayerUpdate, than the objects will get streamed on the old position because between the functions, OnPlayerUpdate wont get called. So, the objects will stream at the correct position after player data has been updated. And then it may be too late... player falls through the ground.
Correct me if I'm wrong about OnPlayerUpdate.
*/
}
Do you know what I mean?