SA-MP Forums Archive
object draw distance +REP +REP - 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: object draw distance +REP +REP (/showthread.php?tid=640356)



object draw distance +REP +REP - BadJih - 01.09.2017

how to make all object draw distance to 300.0 ?


Re: object draw distance +REP +REP - NathanT - 01.09.2017

I think Streamer Plugin already does it (only with objects created by CreateDynamicObject() function). Try it out.


Re: object draw distance +REP +REP - Quantella - 01.09.2017

Quote:
Originally Posted by Manuel550
View Post
Incorrect.
_______________
Download streamer plugin.
Type #define STREAMER_OBJECT_SD 300.0 on the top of the script. (300.0 is draw distance)
And than change every CreateObject in the script to CreateDynamicObject.
Correct.
_______________
Nothing additional since its correct.


Re: object draw distance +REP +REP - NathanT - 01.09.2017

Quote:
Originally Posted by Manuel550
View Post
Incorrect.
_______________
Download streamer plugin.
Type #define STREAMER_OBJECT_SD 300.0 on the top of the script. (300.0 is draw distance)
And than change every CreateObject in the script to CreateDynamicObject.
The last version of Streamer Plugin by Incognito already has this macro, as you can see if you open "streamer.inc":
Code:
#if !defined STREAMER_OBJECT_SD
	#define STREAMER_OBJECT_SD 300.0
#endif



Re: object draw distance +REP +REP - BadJih - 01.09.2017

ok what if i want to add this my script ? where to put it ?? after what ?

#if !defined STREAMER_OBJECT_SD
#define STREAMER_OBJECT_SD 300.0
#endif


Re: object draw distance +REP +REP - Sew_Sumi - 01.09.2017

Quote:
Originally Posted by BadJih
View Post
ok what if i want to add this my script ? where to put it ?? after what ?

#if !defined STREAMER_OBJECT_SD
#define STREAMER_OBJECT_SD 300.0
#endif
Don't... That code is already in the include, so you're wasting your time.


All you need to put in if you want it different to the 300 is...

Code:
#define STREAMER_OBJECT_SD 300.0