why this gate is closed in my server?
# support-forum
c
i want to create a factory here, but this gate looks closed, in map editor its open what is going on? in other server i used to play it was open
f
Some objects, like this gate, are created by the mission scripts because they're part of a mission:
Copy code
c
//Door for casino3.sc    
VAR_INT ca3_loadingbay
CREATE_OBJECT_NO_OFFSET shutter_vegas 1055.629 2087.67 12.469 ca3_loadingbay
DONT_REMOVE_OBJECT ca3_loadingbay
But they can be removed with a normal RemoveBuilding call. See also: https://dev.prineside.com/en/gtasa_samp_model_id/model/2938-shutter_vegas/
c
i dont get it
how should i remove it? i cant select it on samp map construction
f
Because it is not part of the normal map! You need to manually add a RemoveBuilding line to your code with the above model id and coordinates.
b
Nice rockstar moment
c
thank you
for those who want the same thing, the line of code is
Copy code
c++
RemoveBuildingForPlayer(playerid, 2938, 1055.629, 2087.67, 12.469, 0);
f
There are plenty of other areas where objects are added by the mission script; they need an object handle (objectid) so the script can can keep track of them. How would you find a random gate in the world without it having a handle? The hole in SF is another such example. The blast doors in A51 also count, although interestingly I think SA-MP does remove those
b
there's so nice
3 Views