Quick object question. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Quick object question. (
/showthread.php?tid=65344)
Quick object question. -
Outbreak - 11.02.2009
How could i create an object in a virtual world. So that if im in world 0 i wont see it, then i goto world 1 and i see it.
And everyone who isnt in world 1 wont see it..
How can it be done?
Re: Quick object question. -
Nero_3D - 11.02.2009
create a OnPlayerVirtualWorldChange and than destroy / create the objects for the world ids
And this only works if you use PlayerObjects
Re: Quick object question. -
[RP]Rav - 11.02.2009
That won't work if there are players on both virtual worlds
Re: Quick object question. -
Outbreak - 11.02.2009
Ok, so what if i give an array to anyone in the virtual world, then use CreatePlayerObject.
That should work shouldn't it?
Re: Quick object question. -
[RP]Rav - 11.02.2009
yes it could
Re: Quick object question. -
klavins21 - 11.02.2009
object1 = CreateObject(504, x, y, z, c, c, c, c);
LinkObjectToInterior (object1, 1);
this will work if someone will made .inc file to this
Re: Quick object question. -
1337pr0 - 11.02.2009
Quote:
Originally Posted by Rav
That won't work if there are players on both virtual worlds
|
Wrong.
"And this only works if you use PlayerObjects"
See
https://sampwiki.blast.hk/wiki/CreatePlayerObject
Re: Quick object question. -
Nero_3D - 11.02.2009
Quote:
Originally Posted by 1337pr0
|
he was right because I wrote it after I read his post
For me it was logical what to use
But for some we need to add this important sentence