SA-MP Forums Archive
Using Incognito's Streamer_UpdateEx - 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: Using Incognito's Streamer_UpdateEx (/showthread.php?tid=590447)



Using Incognito's Streamer_UpdateEx - CalvinC - 29.09.2015

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.


Re: Using Incognito's Streamer_UpdateEx - Mister0 - 29.09.2015

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


Re: Using Incognito's Streamer_UpdateEx - Patchwerk - 30.09.2015

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;
}



Re: Using Incognito's Streamer_UpdateEx - Scenario - 30.09.2015

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