Exclude Virtual Worlds From Seeing Object -
DaRkM - 13.05.2012
Is there a way to have an object appear in all virtual worlds, but then exclude specific virtual worlds?
The only way I know I can do is just copy/paste the objects and change the virtual world that it appears in, but that doesn't seem like the best way. Any other way?
(Using Incognito Streamer)
Re: Exclude Virtual Worlds From Seeing Object -
[ABK]Antonio - 13.05.2012
"- If -1 is specified for any of the optional parameters (worldid, interiorid, and playerid), the items will be streamed for all virtual worlds, interiors, and/or players."
Re: Exclude Virtual Worlds From Seeing Object -
DaRkM - 13.05.2012
Quote:
Originally Posted by [ABK]Antonio
"- If -1 is specified for any of the optional parameters (worldid, interiorid, and playerid), the items will be streamed for all virtual worlds, interiors, and/or players."
|
I know that, but the problem is having the object show in all virtual worlds besides 1 or 2.
Re: Exclude Virtual Worlds From Seeing Object -
Yuryfury - 13.05.2012
I honestly can't think of a way to do it with an "unlimited" number of virtual worlds.
If you were to do, say, 500 worlds (1 for each player) you can make a loop:
pawn Код:
for (new i = 0; i<MAX_PLAYERS; i++)
{
if(i != 1 && i!=2)
{
CreateDynamicObject(...... , i, .....);//with i being the world paramter
}
}
Re: Exclude Virtual Worlds From Seeing Object -
DaRkM - 13.05.2012
Quote:
Originally Posted by Yuryfury
I honestly can't think of a way to do it with an "unlimited" number of virtual worlds.
If you were to do, say, 500 worlds (1 for each player) you can make a loop:
pawn Код:
for (new i = 0; i<MAX_PLAYERS; i++) { if(i != 1 && i!=2) { CreateDynamicObject(...... , i, .....);//with i being the world paramter } }
|
What would the effect of all those objects be on the server? There are 3 objects that need to be gone for those 2 virtual worlds.
Re: Exclude Virtual Worlds From Seeing Object -
Yuryfury - 13.05.2012
I don't believe there will be a noticeable effect. First of all, I assumed that your server has 500 slots (which is unlikely, a better estimate would be 100). Secondly, the loop is used only once (OnGameModeInit). Thirdly, you are using a streamer.
Re: Exclude Virtual Worlds From Seeing Object -
DaRkM - 14.05.2012
Our playerbase is about 150-200 daily, though we switched to a new host with linux and it's a bit unstable, so I don't want to add on to the instability. The plan has kinda changed and I may not need to do this anymore. Thanks for the help though. +rep'd