Copying Interiors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Copying Interiors (
/showthread.php?tid=409112)
Copying Interiors -
DLR - 20.01.2013
I'm just curious. I wish to make copies of the same interior, for example, I want to use the LSPD interior for both LSPD and FDSA. I know that I can use 2 different VWs, but what if I want to have certain objects appear in 1 VW, and not in the other?
I'm assuming there's a function to set objects to a VW but I don't know what it is. Also, if I don't assign an object to a VW, does that mean it shows up in ALL VWs?
Thanks guys.
Re: Copying Interiors -
DanLore - 20.01.2013
Hi, this plugin will help you.
https://sampforum.blast.hk/showthread.php?tid=102865
Then you can use
pawn Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 300.0);
Re: Copying Interiors -
DLR - 20.01.2013
Already using it
Didn't know it had those parameters though, thanks.
I would be right in saying then that if a worldid is not set it shows up in all VWs, or just VW 0?
Re: Copying Interiors -
Babul - 21.01.2013
the "worldid = -1" is the default parameter, so if you omit that value, then the object(s) will show up in ALL vworlds. same for interiors/players.
Re: Copying Interiors -
DLR - 21.01.2013
Ah, that makes sense, thanks for your help