22.07.2017, 10:49
Well iLearner, lets assume that you have an object, which you wanna remove it from world id 100 and keep it in world 0 to 99, would do like below:
PHP код:
new varworlds[100]; // define var to handle our worlds which object should be visible in 0 - 99 [ size 100 ]
new objectid = CreateDynamicObject(980, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); // create the object on world -1 [ all ]
for(new i = 0; i < 100; i++) // do a loop to set our var which handle words values
{
varworlds[i] = i; // set world id 0 - 99 value same as their value ex 0 = 0, 1 = 1, etc
}
Streamer_SetArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_WORLD_ID, varworlds); // set array world value which has value 0 to 99 for the object
// now object will be visible in world 0 - 99 but not on a world which is grather than 99....