SA-MP Forums Archive
Stream objects in certain virtual worlds - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Stream objects in certain virtual worlds (/showthread.php?tid=372565)



Stream objects in certain virtual worlds - Killer#Mummy - 27.08.2012

Hi!

Is there any way to stream objects in certain virtual worlds? I am using Incognito's streamer.

pawn Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);

//How can I change this to work: (if possible)
CreateDynamicObject(1240,0.0,0.0,0.0,0.0,0.0,0.0,worldid > 5);



Re: Stream objects in certain virtual worlds - Unte99 - 27.08.2012

You made a question and at the same time posting the answer...


Re: Stream objects in certain virtual worlds - Killer#Mummy - 27.08.2012

I'm not sure what are you talking about, but this way does not work at me since the worldid variable is not defined.


Re: Stream objects in certain virtual worlds - Ranama - 27.08.2012

change "worldid = -1"
to the worldid you want the object to be in.
Hope it helped.


Re: Stream objects in certain virtual worlds - Babul - 27.08.2012

sadly, no, you need to define one (or -1 for all) virtual-worlds explicitly to stream an object in. exceptions, like you want, cannot be made (vworlds >5, but not 0,1,2,3,4 and 5).
the streamer CAN handle a large amount of objects, so if you need "only" a few vworlds, then you could create an objects for each single vworld. it will cost only an unnoticeable amount of RAM - and a little more CPU time.


Re: Stream objects in certain virtual worlds - Killer#Mummy - 27.08.2012

Ok thanks guys for help!