Removing all objects from a certain world.
#5

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(9800.00.00.00.00.00.0); // create the object on world -1 [ all ]
    
for(new 0100i++) // 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_OBJECTobjectidE_STREAMER_WORLD_IDvarworlds); // 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.... 
Reply


Messages In This Thread
Removing all objects from a certain world. - by iLearner - 22.07.2017, 09:27
Re: Removing all objects from a certain world. - by jlalt - 22.07.2017, 09:49
Re: Removing all objects from a certain world. - by Vince - 22.07.2017, 10:06
Re: Removing all objects from a certain world. - by iLearner - 22.07.2017, 10:33
Re: Removing all objects from a certain world. - by jlalt - 22.07.2017, 10:49
Re: Removing all objects from a certain world. - by iLearner - 22.07.2017, 10:54
Re: Removing all objects from a certain world. - by jlalt - 22.07.2017, 10:58
Re: Removing all objects from a certain world. - by Vince - 22.07.2017, 11:17
Re: Removing all objects from a certain world. - by iLearner - 22.07.2017, 11:21
Re: Removing all objects from a certain world. - by NaS - 22.07.2017, 12:52

Forum Jump:


Users browsing this thread: 2 Guest(s)