Quote:
Originally Posted by Basssiiie
What's wrong with just SetPlayerPos, SetPlayerInterior, SetPlayerVirtualWorld? They should change the position, interior and world of a single player.
And if that is not enough, you can also use Streamer_UpdateEx to specify other coordinates/world/interior info for the specific update. 
|
I must have worded it wrong (i tend to do that)
What i mean is adding a feature that allows you alter the players virtual world and/or interior also their position(not sure if that one is needed but i'm sure someone may find it useful) that the
streamer uses for streaming. So basically you could set the players world or interior then say you have a set of objects you need to show the player you can just alter the
streamer data for that player and the
streamer then sees that you are in the same world as the objects and then shows them.
Performance wise it would be better to change the players data in the
streamer than to add more worlds to hundreds or thousands of objects or items. For example Incognito even states in the first post about adding to many worlds to objects results in more checks and possible reduce in performance.
Quote:
Originally Posted by Incognito
Performance Notes- Adding too many virtual worlds and interiors to items can lead to increased memory usage and decreased performance. Specifying -1 (all virtual worlds and interiors) actually ensures the best performance, because it eliminates the need to do a lookup when that item is checked on each update. Note that this does not apply to players since only a finite amount can be added.
|
I understand the only thing that would be better performance wise would be to use -1 for world and interior but in my case with the server ive been building i utilize multiple worlds for different features and i cant do that.
tl;dr version: Or in simpler description it would be easy to trick the
streamer into thinking the player is in world 1 but they are really in world 20 and in turn the
streamer would stream all items from world 1....
Other that that i don't know how else to describe this.