This topic was marked solved by its starter, on August 13th, 2020, 04:43 PM
hidemapobject problem

KrOoB_

  • Full Member
  • Keeper
  • Posts: 175
hidemapobject problem
«  »Last edited
i tried to hide this object from map but i couldn't why ? (i can hide other map objects)
code;
Code: [Select]
    HideMapObject(1815,-637.278, 834.331, 12.4208)
SS

|-> VC:MP Player Since 2014
|-> VC-TR Founder
|-> VC-TR Scripter and Hoster


Murdock

  • LU Beta Tester
  • Posts: 244
Re: hidemapobject problem
« Reply #1,  »
Try using the coordinates as defined in downtows.ipl itself
Code: [Select]
// 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_

  • Full Member
  • Keeper
  • Posts: 175
Re: hidemapobject problem
« Reply #2,  »
Quote from Murdock on August 11th, 2020, 08:49 PM
Try using the coordinates as defined in downtows.ipl itself
Code: [Select]
// 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
Code: [Select]
HideMapObject(1815, -637.277771, 834.3309326, 12.42084503)
but still here :D

|-> VC:MP Player Since 2014
|-> VC-TR Founder
|-> VC-TR Scripter and Hoster


habi

  • Sr. Member
  • Posts: 288
Re: hidemapobject problem
« Reply #3,  »
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_

  • Full Member
  • Keeper
  • Posts: 175
Re: hidemapobject problem
« Reply #4,  »
Quote from habi on August 12th, 2020, 05: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?
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
Re: hidemapobject problem
« Reply #5,  »
Quote from habi on August 12th, 2020, 05:14 PM
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?
probably cause of object's size

|-> VC:MP Player Since 2014
|-> VC-TR Founder
|-> VC-TR Scripter and Hoster


Xmair

  • Wiki Contributor
  • Posts: 951
Re: hidemapobject problem
« Reply #6,  »
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:
Code: [Select]
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_

  • Full Member
  • Keeper
  • Posts: 175
Re: hidemapobject problem
« Reply #7,  »
Quote from Xmair on August 12th, 2020, 07: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:
Code: [Select]
RawHideMapObject(1815, -637, 834, 12)
nope it didn't work either :(

|-> VC:MP Player Since 2014
|-> VC-TR Founder
|-> VC-TR Scripter and Hoster


habi

  • Sr. Member
  • Posts: 288
Re: hidemapobject problem
« Reply #8,  »
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_

  • Full Member
  • Keeper
  • Posts: 175

|-> VC:MP Player Since 2014
|-> VC-TR Founder
|-> VC-TR Scripter and Hoster


habi

  • Sr. Member
  • Posts: 288
Re: hidemapobject problem
« Reply #10,  »
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_

  • Full Member
  • Keeper
  • Posts: 175
Re: hidemapobject problem
« Reply #11,  »
no i just trying to verify the position of object and showing it. My problem is still this map object (not custom)

 

|-> VC:MP Player Since 2014
|-> VC-TR Founder
|-> VC-TR Scripter and Hoster


habi

  • Sr. Member
  • Posts: 288
Re: hidemapobject problem
« Reply #12,  »
i am totally confused.

Are you trying to hide 'POLICE ONLY' object?

KrOoB_

  • Full Member
  • Keeper
  • Posts: 175

|-> VC:MP Player Since 2014
|-> VC-TR Founder
|-> VC-TR Scripter and Hoster


habi

  • Sr. Member
  • Posts: 288
Re: hidemapobject problem
« Reply #14,  »
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 .