hidemapobject problem

Started by KrOoB_, Aug 11, 2020, 03:11 PM

Previous topic - Next topic

KrOoB_

i tried to hide this object from map but i couldn't why ? (i can hide other map objects)
code;     HideMapObject(1815,-637.278, 834.331, 12.4208)SS

Murdock

Try using the coordinates as defined in downtows.ipl itself
// 1815, dts_cop_park, 0, -637.277771, 834.3309326, 12.42084503, 1, 1, 1, 0, 0, 0, 1
HideMapObject(1815, -637.277771, 834.3309326, 12.42084503)

KrOoB_

Quote from: Murdock on Aug 11, 2020, 07:49 PMTry using the coordinates as defined in downtows.ipl itself
// 1815, dts_cop_park, 0, -637.277771, 834.3309326, 12.42084503, 1, 1, 1, 0, 0, 0, 1
HideMapObject(1815, -637.277771, 834.3309326, 12.42084503)
i placed the code
HideMapObject(1815, -637.277771, 834.3309326, 12.42084503) but still here :D

habi

Idea: Since there are many cop's parking, i think some other parking space is being hidden. By looking at the co-ordinates, i have a feeling that the object you are trying to hide is little ahead (north) of where you are standing.

what you say?

KrOoB_

Quote from: habi on Aug 12, 2020, 04:14 PMIdea: Since there are many cop's parking, i think some other parking space is being hidden. By looking at the co-ordinates, i have a feeling that the object you are trying to hide is little ahead (north) of where you are standing.

what you say?
i don't think so, co-ordinates are correct i tried before mine and murdock's. ( there is no co-ordinates except them they must be the correct one cuz i can hide other objects with same way )
u can try also

KrOoB_

Quote from: habi on Aug 12, 2020, 04:14 PMBy looking at the co-ordinates, i have a feeling that the object you are trying to hide is little ahead (north) of where you are standing.

what you say?
probably cause of object's size

Xmair

If I remember correctly, some objects don't hide for some reason (vcmp bug, don't know if it still exists) but you can give this a try:
RawHideMapObject(1815, -637, 834, 12)

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

KrOoB_

Quote from: Xmair on Aug 12, 2020, 06:20 PMIf I remember correctly, some objects don't hide for some reason (vcmp bug, don't know if it still exists) but you can give this a try:
RawHideMapObject(1815, -637, 834, 12)
nope it didn't work either :(

habi

Finally i went to downtown.

This is where you are( HideMapObject(1815, -637.277771, 834.3309326, 12.42084503)


and look below for original co-ordinates.
Original

I used to make bots in downtown, so i know a bit of co-ordinates there!

KrOoB_

dude add the object with this position -637.278, 834.331, 12.4208 you'll see, here is the file of object https://dosya.co/0tizbzrvctln/store.7z.html

habi

hi KrooB, HideMapObjects i think is for hiding map objects which was already there.


If you are trying to hide custom objects, try object.World=-1  or something. ?
I have not worked with objects that much.

KrOoB_

no i just trying to verify the position of object and showing it. My problem is still this map object (not custom)

 

habi

i am totally confused.

Are you trying to hide 'POLICE ONLY' object?

KrOoB_

Quote from: habi on Aug 13, 2020, 12:21 PMi am totally confused.

Are you trying to hide 'POLICE ONLY' object?
yes

habi

Oh i understood. The object is a very big one. It is a rectangle which consists of three or four 'POLICE ONLY'.

I went ingame tried to hide this object. Not working. There is another object of same ID in downtown. I tried hiding it too.

May be this is some VCMP bug .