SA-MP Forums Archive
Removing 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: Removing Objects (/showthread.php?tid=333954)



Removing Objects - Infamous - 13.04.2012

Hi there,

I use RemoveBuildingForPlayer to remove the lifts on the SF Aircraft Carrier under OnPlayerConnect.

I re-create the lifts before removing the default objects under OnGameModeInit, however the newly created objects are removed along with the static objects.

I thought that RemoveBuildingForPlayer only removed static objects and the created objects were ignored by the function. Is there any way i can get round this? I really need to replace them.


Re: Removing Objects - IstuntmanI - 13.04.2012

Change object's X, Y, Z by 0.01. Maybe will work.

So 14.4235, 2134.5322, 4231.2121 will be 14.4335, 2134.5422, 4231.2221

At RemoveBuildingForPlayer set the range at 0.008.


Re: Removing Objects - ReneG - 13.04.2012

EDIT:

Nevermind, I saw what you needed.

Here is a Filterscript by MP2, that moves them via commands.
https://sampforum.blast.hk/showthread.php?tid=285862


Re: Removing Objects - Infamous - 13.04.2012

Thanks for the replies, got it working using costel's method.


Re: Removing Objects - Infamous - 13.04.2012

Edit: Working now properly now.