SA-MP Forums Archive
Removing the bots inside the small Casino interior - 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 the bots inside the small Casino interior (/showthread.php?tid=604626)



Removing the bots inside the small Casino interior - Abagail - 08.04.2016

Hello.

I am currently working on a script inside the small Casino interior(1139.47, -5.51, 1000.67). I've seen through other threads that using DisableInteriorEnterExits() removes them, but it doesn't seem to do the trick - the bots are still present.

How should I go about removing them? If all fails, I'll probably end up making a mock interior elsewhere within the map.

Thanks,
Abagail


Re: Removing the bots inside the small Casino interior - DRIFT_HUNTER - 08.04.2016

Change player's virtual world.


Re: Removing the bots inside the small Casino interior - Abagail - 08.04.2016

I have changed the player's virtual world and it seems to do nothing at all. If you put the player in a camera really high above the interior, the NPC's actually start moving(I found this quite odd), not really related but that's quite interesting.


Re: Removing the bots inside the small Casino interior - itsCody - 08.04.2016

Not entirely sure, but I think this could solve it, but you'll have to go through it since it deletes the tables and such as well.

http://forum.sa-mp.com/showpost.php?...43&postcount=8


Re: Removing the bots inside the small Casino interior - Abagail - 08.04.2016

Assuming I've removed the original GTA:SA table objects, will dynamic/streamed tables still work without recreating the NPCs?


Re: Removing the bots inside the small Casino interior - iiNzTicTx - 08.04.2016

As Byt3/Cody said: they're bound linked to the casino objects so perhaps recreate the objects?
If that doesn't work you'll have to recreate the interior as the bots will be connected to that interior ID.

Yes recreating objects will not readd the bots, if it works: CreateDynamicObj, or CreateObject-wise.
~ native objects aren't in the same container.


Re: Removing the bots inside the small Casino interior - Abagail - 08.04.2016

Removing the original table and spinwheel objects seems to have worked.
P.S: Thanks for your object array Pottus, the map editor didn't return the correct rotations.

Table replacements with correct rotations:
pawn Code:
CreateDynamicObject(2188, 1125.140014, -3.414060, 1000.580017, 0.000000, 0.000000, -0.000017, 0.000000);
CreateDynamicObject(2188, 1127.079956, -1.679690, 1000.580017, 0.000000, 0.000000, 89.999992, 0.000000);
CreateDynamicObject(2188, 1125.150024, -0.031250, 1000.580017, 0.000000, 0.000000, 179.999984, 0.000000);
Original object removal:
pawn Code:
RemoveBuildingForPlayer(playerid, 1895, 1117.2813, -1.6484, 1002.0781, 0.25);
RemoveBuildingForPlayer(playerid, 2188, 1125.1406, -3.4141, 1000.5781, 0.25);
RemoveBuildingForPlayer(playerid, 2188, 1127.0781, -1.6797, 1000.5781, 0.25);
RemoveBuildingForPlayer(playerid, 2188, 1125.1484, -0.0313, 1000.5781, 0.25);