Vice City: Multiplayer

Server Development => Scripting and Server Management => Script and Content Requests => Topic started by: KrOoB_ on Aug 11, 2020, 03:11 PM

Title: hidemapobject problem
Post by: KrOoB_ on Aug 11, 2020, 03:11 PM
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(https://i.imgur.com/htnHRsI.png)
(https://i.imgur.com/4N2Eu4i.png)
Title: Re: hidemapobject problem
Post by: Murdock on Aug 11, 2020, 07:49 PM
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)
Title: Re: hidemapobject problem
Post by: KrOoB_ on Aug 12, 2020, 08:45 AM
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
(https://i.imgur.com/pTiWPz0.png)
Title: Re: hidemapobject problem
Post by: habi on Aug 12, 2020, 04:14 PM
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?
Title: Re: hidemapobject problem
Post by: KrOoB_ on Aug 12, 2020, 05:35 PM
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
Title: Re: hidemapobject problem
Post by: KrOoB_ on Aug 12, 2020, 05:43 PM
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
(https://i.imgur.com/TxuJ3tv.png)
Title: Re: hidemapobject problem
Post by: Xmair on Aug 12, 2020, 06:20 PM
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)
Title: Re: hidemapobject problem
Post by: KrOoB_ on Aug 13, 2020, 05:28 AM
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 :(
Title: Re: hidemapobject problem
Post by: habi on Aug 13, 2020, 10:01 AM
Finally i went to downtown.
(https://i.imgur.com/6tgbBMq.jpg)
This is where you are( HideMapObject(1815, -637.277771, 834.3309326, 12.42084503)
(https://i.imgur.com/Eb1NfCJ.png)

and look below for original co-ordinates.
Original
(https://i.imgur.com/7uOExVc.png)
I used to make bots in downtown, so i know a bit of co-ordinates there!
Title: Re: hidemapobject problem
Post by: KrOoB_ on Aug 13, 2020, 10:43 AM
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
Title: Re: hidemapobject problem
Post by: habi on Aug 13, 2020, 10:49 AM
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.
Title: Re: hidemapobject problem
Post by: KrOoB_ on Aug 13, 2020, 11:22 AM
no i just trying to verify the position of object and showing it. My problem is still this map object (not custom)
(https://i.imgur.com/pTiWPz0.png)
 
Title: Re: hidemapobject problem
Post by: habi on Aug 13, 2020, 12:21 PM
i am totally confused.

Are you trying to hide 'POLICE ONLY' object?
Title: Re: hidemapobject problem
Post by: KrOoB_ on Aug 13, 2020, 01:56 PM
Quote from: habi on Aug 13, 2020, 12:21 PMi am totally confused.

Are you trying to hide 'POLICE ONLY' object?
yes
Title: Re: hidemapobject problem
Post by: habi on Aug 13, 2020, 03:27 PM
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 .
Title: Re: hidemapobject problem
Post by: KrOoB_ on Aug 13, 2020, 03:40 PM
Case is closed then :( thanks guys :)