PDA

View Full Version : RemoveBuildingForPlayer


Typhome
19/01/2012, 05:43 PM
http://wiki.sa-mp.com/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: http://www.youtube.com/watch?v=fMfPqhrP_C8

Vince
19/01/2012, 06:58 PM
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.

Typhome
19/01/2012, 07:05 PM
What you mean "LOD"?

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

Drebin
19/01/2012, 07:07 PM
You don't remove the object properly. Use this mapping tool to remove the whole object and let it print you the code:
http://forum.sa-mp.com/showthread.php?t=282801

Typhome
19/01/2012, 07:09 PM
You don't remove the object properly. Use this mapping tool to remove the whole object and let it print you the code:
http://forum.sa-mp.com/showthread.php?t=282801

Hmm, im using this editor to remove buildings... And after that will appear this bug.. ? :|

Vince
19/01/2012, 08:03 PM
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.

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.

leong124
20/01/2012, 05:53 AM
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.

Typhome
20/01/2012, 08:59 PM
Do i set max or min this LOD Distance factor in views tab? (In JernejL editor)

Drebin
20/01/2012, 09:13 PM
You don't need to change it.

Typhome
20/01/2012, 09:16 PM
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. :)