SA-MP Forums Archive
Create dynamic object view distance - 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: Create dynamic object view distance (/showthread.php?tid=188004)



Create dynamic object view distance - Ivan_Pantovic - 05.11.2010

Hello everyone , i have a huge problem with object view distance .
I use streamer plugin by Incognito .
Everithing works fine , but streamer requires view distance for objects to show them notmally . Itwouldn't be hard for me to add -1, -1, -200 on each CreateDynamicObject function , if wouldn't have more than 1000 of objects in my game mode . Is there any other streamer plugin or any other way to make this ?


Re: Create dynamic object view distance - Sinner - 05.11.2010

Open up the replace function (most text editors have one) and follow these steps:
1. Select all your objects
2. Search for );
3. Replace with -1, -1, 200);

There you have it, all objects changed in less then 20 seconds!


Re: Create dynamic object view distance - Ivan_Pantovic - 06.11.2010

i knew that , but there are two problems :
1. 25% of objects aren't under ongamemodeinit
2. this will include vehicles pickups and such


Re: Create dynamic object view distance - Hal - 06.11.2010

Quote:
Originally Posted by Ivan_Pantovic
View Post
i knew that , but there are two problems :
1. 25% of objects aren't under ongamemodeinit
2. this will include vehicles pickups and such
unless you go into the include and figure out how to define the draw distance, i dont know what to suggest.


Re: Create dynamic object view distance - Ivan_Pantovic - 06.11.2010

I tried to replace this :
pawn Code:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.0);
With :
pawn Code:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, -1,  -1, -1, 200.0);
but it didn't work , any ideas :S ?


Re: Create dynamic object view distance - Ivan_Pantovic - 06.11.2010

now i converted every single object , and still not working