Using Incognito's Streamer_UpdateEx
#1

I've always hated freezing players when they enter interiors, and recommended using Streamer_UpdateEx.
I'm trying to teleport players into custom-made interiors right now by using Streamer_UpdateEx, but it doesn't seem to be fast enough.
They still fall through the floor while the interior loads.
Seen some other topics as well, but without solutions.

I've heard Fallout's Streamer might be faster, but it still isn't totally reliable.
Reply
#2

Use the streamer function to load object from big distance
Streamer_SetVisibleItems(type, items, playerid = -1);
Reply
#3

You can try create player object under player.
Something like
Код:
stock SetPlayerEnterance(playerid, id){
	if(id == -1) return 0;
	if(IsValidPlayerObject(playerid, PlayerEnteranceObject[playerid])) DestroyPlayerObject(playerid, PlayerEnteranceObject[playerid]);

	PlayerEnteranceObject[playerid] = CreatePlayerObject(playerid, PLATFORM_MODEL, Enterance[id][iPos][0], Enterance[id][iPos][1], Enterance[id][iPos][2]-FLOOR_HEIGHT, 0.0, 0.0, 0.0, 6000.0);
	Streamer_UpdateEx(playerid, Enterance[id][iPos][0], Enterance[id][iPos][1], Enterance[id][iPos][2], .interiorid = AllInteriors[type][iInterior]);
	SetPlayerPos(playerid, Enterance[id][iPos][0], Enterance[id][iPos][1], Enterance[id][iPos][2]);
	SetPlayerInterior(playerid, Enterance[id][iInterior]);
	SetPlayerFacingAngle(playerid, Enterance[id][iPos][3]);
	InEnterance[playerid] = id;
	return 1;
}
Reply
#4

Literally freeze the player for 1.5 seconds and then unfreeze. It's the best way without doing what "Patchwerk" said.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)