SA-MP Forums Archive
RemoveBuildingForPlayer - 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: RemoveBuildingForPlayer (/showthread.php?tid=312038)



RemoveBuildingForPlayer - Typhome - 19.01.2012

https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer

I see that function have some bugs. (I didn't removed those trailers like in video, but it's hiding like bugged)
Or what's problem?

Video: [ame]http://www.youtube.com/watch?v=fMfPqhrP_C8[/ame]


Re: RemoveBuildingForPlayer - Vince - 19.01.2012

If you remove a building that has a LOD, then you need to remove that model too. On the other hand, if you didn't want to remove those, you have set a too big radius for another RemoveBuildingForPlayer statement.


Re: RemoveBuildingForPlayer - Typhome - 19.01.2012

What you mean "LOD"?

Im using RemoveBuildingForPlayer (all to 1000.0 radius) So what radius i should set?


AW: RemoveBuildingForPlayer - Drebin - 19.01.2012

You don't remove the object properly. Use this mapping tool to remove the whole object and let it print you the code:
https://sampforum.blast.hk/showthread.php?tid=282801


Re: AW: RemoveBuildingForPlayer - Typhome - 19.01.2012

Quote:
Originally Posted by Drebin
Посмотреть сообщение
You don't remove the object properly. Use this mapping tool to remove the whole object and let it print you the code:
https://sampforum.blast.hk/showthread.php?tid=282801
Hmm, im using this editor to remove buildings... And after that will appear this bug.. ?


Re: RemoveBuildingForPlayer - Vince - 19.01.2012

Quote:
Originally Posted by Typhome
Посмотреть сообщение
What you mean "LOD"?
LOD means Low Object Detail; it's the model with crappy textures you see in the distance when you're far away.

Quote:
Originally Posted by Typhome
Посмотреть сообщение
Im using RemoveBuildingForPlayer (all to 1000.0 radius) So what radius i should set?
Um yeah .. For reference: the GTA SA map is 6000.0 units across. You have a radius of 1/6th that size! Set it to 1.0 or something.


Re: RemoveBuildingForPlayer - leong124 - 20.01.2012

Setting the radius large will remove ALL the objects of the same object ID in the whole map (excluding those created by script)! The radius doesn't mean the removal draw distance.


Re: RemoveBuildingForPlayer - Typhome - 20.01.2012

Do i set max or min this LOD Distance factor in views tab? (In JernejL editor)


AW: RemoveBuildingForPlayer - Drebin - 20.01.2012

You don't need to change it.


Re: AW: RemoveBuildingForPlayer - Typhome - 20.01.2012

Quote:
Originally Posted by Drebin
Посмотреть сообщение
You don't need to change it.
Umm, i should set RemoveBuildingForPlayer radius to 1.0 and this problem will disappear?

// Yep, it will disappear. Thanks for helping.