Invisible objects
#1

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?
Reply
#2

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..
Reply
#3

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

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?
Reply
#5

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

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?
Reply
#7

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.
Reply
#8

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.
Reply
#9

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


Forum Jump:


Users browsing this thread: 1 Guest(s)