How to delete these 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: How to delete these objects? (
/showthread.php?tid=434040)
How to delete these objects? -
lQs - 30.04.2013
Like above, how i can delete these objects? I dont see em in my object editor, so yeah. Anyone?
Re: How to delete these objects? -
Sanguy - 30.04.2013
Ah, this problem crops up from time to time. The thing is, a few IG objects are actually placed on the map by the game's .SCM itself, rather than them being generated from IPLs and the like. Sadly, when this is the case(and I suspect it is), there is not much that you can do about it AFAIK.
Re: How to delete these objects? -
Sanguy - 30.04.2013
Considering that there are some buildings that have already been removed, I should think so...... but that gives me an idea: get the position coordinates of that door and make a RemoveBuildingForPlayer entry for the door using it's id and position coords. Make the removebuild lines under a command rather than under onplayerconnect, and see if that works(deleting the object after the .SCM generates it rather than when the player connects).
Re: How to delete these objects? -
Vince - 30.04.2013
The mission script loads when the game starts, which is before you enter the server. I've had no issues deleting some SCM generated objects. The door you're showing is called CR_DOOR_01 in the mission script. The objectid is 2947.
Код:
$2660 = Object.Init(#CR_DOOR_01, 2322.845, 8.304, 25.483)
$2661 = Object.Init(#CR_DOOR_01, 2316.233, 0.712, 25.742)