Switching object's to a new world. - 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: Switching object's to a new world. (
/showthread.php?tid=548996)
Switching object's to a new world. -
fonia5 - 04.12.2014
How can i switch my object's into a new interior world because i have mapped in the same place and i want them set as in the new world rather the same one
Код HTML:
CreateDynamicObject(19325,1406.226,-17.121,1010.616,0.000,0.000,180.000,-1,-1,-1,600.000,600.000);
Re: Switching object's to a new world. -
BlackWolf120 - 04.12.2014
pawn Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0, Float:drawdistance = 0.0);
Adjust the interiorid/worldid to your needs
regards, wolf.
Re: Switching object's to a new world. -
fonia5 - 04.12.2014
were do i put the native?
Also can you edit the Createobject i added because i have no idea which part of code is X Y Z blah stuff like that.
Re: Switching object's to a new world. -
BlackWolf120 - 04.12.2014
i posted the native so you see what parameters are what for...
CreateDynamicObject(19325,1406.226,-17.121,1010.616,0.000,0.000,180.000,
-1,
-1,-1,600.000,600.000);
Do you see the 3 "-1"s in your code?
That are the parameters you have asked for.
Red: worldID
Blue: InteriorID
regards, wolf.
Re: Switching object's to a new world. -
fonia5 - 04.12.2014
oh i get it now thanks bud.
Re: Switching object's to a new world. -
BlackWolf120 - 04.12.2014
sure, youre welcome
regards, wolf.