Exclude Virtual Worlds From Seeing Object
#1

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)
Reply
#2

"- 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."
Reply
#3

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.
Reply
#4

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
        }
}
Reply
#5

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.
Reply
#6

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.
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)