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



Invisible objects - BigGroter - 05.04.2013

I use SA-MP Map Construction. I removed a building and started mapping seriously for the first time ever, however when I go to test it there's an invisible object or whatever. It's blocking my path. I've enabled colls but there's nothing there. There's also a black and yellow question mark, how do I solve these problems?


Re: Invisible objects - Babul - 05.04.2013

the question mark indicates an object created there, using a wrong ID - maybe due to wrongly converted from MTA?
the invisible collision may be caused by a second (LOD) object, idont know if there is a/the collision attached, but it seems that its not removed. try a bigger distance than the default 0.25 for removing large objects..


Re: Invisible objects - BigGroter - 05.04.2013

How would I know what ID it is? I don't use MTA btw.
How do I check if there's another LOD object?


Re: Invisible objects - Babul - 05.04.2013

when you click an object and delete it, click on "show code". like for the area51-buildings, it shows
Код:
RemoveBuildingForPlayer(playerid, 16619, 199.3359, 1943.8750, 18.2031, 0.25);
RemoveBuildingForPlayer(playerid, 16323, 199.3359, 1943.8750, 18.2031, 0.25);
...but the selected object id was 16323. the other object is the 16619, one of both is the LOD model. both should be removed - i guess you did that already
the other reason for the invisible wall could be a big object and you standing inside it, not able to see the textures outside. did you teleport to the position/spawn there, or did you drive there, so you can exclude that case?


Re: Invisible objects - BigGroter - 05.04.2013

Yeah I removed both, and it's close to Pershing Square, I am not inside any big object. Do you have Skype?


Re: Invisible objects - Basssiiie - 06.04.2013

It might be that the object is sharing it's collision with another object. This means that if object A and object B share the same collision, which is linked to object A. Then when object A is removed, it also removes the collision for object B. But if only object B is removed, the collision stays for both objects. This doesn't happen very often in SA though, I've only seen it with some interiors.

Which objects are you trying to remove, anyway?


Re: Invisible objects - BigGroter - 06.04.2013

I'm not trying to remove anything in an interior.
I removed object 4048 (and 4047, since it's removed once you remove 404, it's a building close to LSPD. I find it weird how there would be some sort of collision INSIDE the previous object (404.


Re: Invisible objects - Basssiiie - 06.04.2013

If you want to remove 4048 and 4047, you can also just do this:
Код:
RemoveBuildingForPlayer(playerid, 4048, 0.0, 0.0, 0.0, 6000.0);
RemoveBuildingForPlayer(playerid, 4047, 0.0, 0.0, 0.0, 6000.0);
This should work, but I haven't tried it ingame.


Re: Invisible objects - BigGroter - 06.04.2013

That sure fixed it, thank you.
Rep+ for both of you's.