Help with dynamic object 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: Help with dynamic object virtual worlds (
/showthread.php?tid=620813)
Help with dynamic object virtual worlds -
Type-R - 03.11.2016
Hello, so i found that there is a paramater in CreateDynamicObject function that can set a virtual world. Now lets say i have 1000 objects in my script, that i want only to be visible in virtual world 1. But what could i do to save me some time of going through each 1000 lines? Is it possible to put them in a text file or something like that and create a little script that will have a loop in it, will go through all the lines and change each virtual world to 1? I am asking this because i have way more than 1000 objects, that need to be moved to a different virtual world, because i am trying to move my stunts to a different world.
Re: Help with dynamic object virtual worlds -
Konstantinos - 03.11.2016
Copy and paste those lines for the objects you want in a file, then CTRL + H to replace "
);" with "
, 1);"
Re: Help with dynamic object virtual worlds -
Type-R - 03.11.2016
Thank you!