Object ID.
#1

There are some light objects on my server. I can't find the object id, so that i would be able to delete them. I tried to paste the whole gamemode into the sa-mp map editor to see if those appear. I just can't find them.
Below you can see some screenshots.

Reply
#2

Didn't mommy and daddy or anyone teach you how to use ******, for crying out loud??
Honestly, dude, it took me 10 seconds to get results!!!

https://sampforum.blast.hk/showthread.php?tid=301507&page=2
Reply
#3

Quote:
Originally Posted by HeLiOn_PrImE
Посмотреть сообщение
Didn't mommy and daddy or anyone teach you how to use ******, for crying out loud??
Honestly, dude, it took me 10 seconds to get results!!!

https://sampforum.blast.hk/showthread.php?tid=301507&page=2
Hah, nice joke.
But you are wrong, those are not the right ojects, i've been searching a lot for them, can't find them.
On the link you provided, there are some construction site objects, not the ones from LV Army.
Reply
#4

The searchlight itself consists of three objects (the square cone base, the housing and then the bulb itself). I don't know those ids by heart but I reckon you should be able to find them if you search for "a51_" in any map editor. That prefix is used for most of the base's objects.

That said, I don't think it's possible to remove the light beams themselves. These aren't objects (rather they are particles), they don't have an ID and as a result they can't be removed with RemoveBuilding. As is proven by this piece of mission script:

Код:
06B1: 35@ = create_searchlight_at 161.513 1932.982 35.391 radius 0.5 target 49@ 56@ 63@ radius 12.5 
42@ = Object.Init(#A51_SPOTBULB, 103.946, 1901.047, 36.246)
92@ = Object.Init(#A51_SPOTHOUSING, 103.946, 1901.047, 36.246)
93@ = Object.Init(#A51_SPOTBASE, 103.946, 1901.047, 36.246)
06CA: attach_searchlight 35@ to_tower 93@ to_housing 92@ to_bulb 42@ with_offset 0.0 1.181 0.768 
066D: 136@ = attach_particle "SHOOTLIGHT" to_object 42@ with_offset 0.0 1.181 0.768 flag 1
Reply
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
The searchlight itself consists of three objects (the square cone base, the housing and then the bulb itself). I don't know those ids by heart but I reckon you should be able to find them if you search for "a51_" in any map editor. That prefix is used for most of the base's objects.

That said, I don't think it's possible to remove the light beams themselves. These aren't objects (rather they are particles), they don't have an ID and as a result they can't be removed with RemoveBuilding. As is proven by this piece of mission script:

Код:
06B1: 35@ = create_searchlight_at 161.513 1932.982 35.391 radius 0.5 target 49@ 56@ 63@ radius 12.5 
42@ = Object.Init(#A51_SPOTBULB, 103.946, 1901.047, 36.246)
92@ = Object.Init(#A51_SPOTHOUSING, 103.946, 1901.047, 36.246)
93@ = Object.Init(#A51_SPOTBASE, 103.946, 1901.047, 36.246)
06CA: attach_searchlight 35@ to_tower 93@ to_housing 92@ to_bulb 42@ with_offset 0.0 1.181 0.768 
066D: 136@ = attach_particle "SHOOTLIGHT" to_object 42@ with_offset 0.0 1.181 0.768 flag 1
It means i should find an alternative for removing them, like overlapping them if other objects. Thanks.
Reply
#6

Try removing object ID: 2887, 2888 and 2889. Hope i helped.
Reply
#7

Someone made the same topic a while ago. I extracted the link from there:
https://sampforum.blast.hk/showthread.php?tid=136475
Reply
#8

Quote:
Originally Posted by HeLiOn_PrImE
Посмотреть сообщение
Didn't mommy and daddy or anyone teach you how to use ******, for crying out loud??
Honestly, dude, it took me 10 seconds to get results!!!

https://sampforum.blast.hk/showthread.php?tid=301507&page=2
And it took him 5 seconds to make a new thread
Reply
#9

Here is the solution:
Use these codes.Totally works.
RemoveBuildingForPlayer(playerid, 2887, 103.946, 1901.047, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2888, 103.946, 1901.047, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2889, 103.946, 1901.047, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2887, 161.962, 1933.043, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2888, 161.962, 1933.043, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2889, 161.962, 1933.043, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2887, 233.486, 1934.789, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2888, 233.486, 1934.789, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2889, 233.486, 1934.789, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2887, 267.116, 1895.241, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2888, 267.116, 1895.241, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2889, 267.116, 1895.241, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2887, 262.145, 1807.62, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2888, 262.145, 1807.62, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2889, 262.145, 1807.62, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2887, 166.003, 1849.937, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2888, 166.003, 1849.937, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2889, 166.003, 1849.937, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2887, 113.439, 1814.405, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2888, 113.439, 1814.405, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2889, 113.439, 1814.405, 36.246, 0.25);
Reply
#10

Quote:
Originally Posted by HeLiOn_PrImE
Посмотреть сообщение
Didn't mommy and daddy or anyone teach you how to use ******, for crying out loud??
No need to be rude, maybe in Romania you don't have manners, he asked for help so chill.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)