Vice City: Multiplayer

Server Development => Scripting and Server Management => Script and Content Requests => Topic started by: BeckzyBoi on Jun 27, 2018, 08:21 AM

Title: RawHideMapObject and HideMapObject
Post by: BeckzyBoi on Jun 27, 2018, 08:21 AM
What's the different between these functions? Which do I use to remove an object from the map? (I.E. what RemoveBuildingForPlayer does in SA-MP) . wiki.vc-mp.org doesn't give me any information on these functions other than the syntax. Also, about the syntax - where do I find the x, y, z positions for the map object? Thanks

P.S. If you can also help me with this, that's be great. - https://forum.vc-mp.org/?topic=5920.0
Title: Re: RawHideMapObject and HideMapObject
Post by: rww on Jun 27, 2018, 08:49 AM
https://forum.vc-mp.org/?topic=1144.msg7653#msg7653
Title: Re: RawHideMapObject and HideMapObject
Post by: BeckzyBoi on Jun 27, 2018, 09:14 AM
So for the coordinates I must use integers? Also no-where in that topic tells me the difference between the 2 functions.
Title: Re: RawHideMapObject and HideMapObject
Post by: ysc3839 on Jun 27, 2018, 12:07 PM
https://bitbucket.org/stormeus/0.4-squirrel/src/cdeaf615b61b5c94d79f4a1e342d911b168c3cb3/FunctionHandler.cpp#lines-400
RawHideMapObject calls HideMapObject function in VCMP SDK.
HideMapObject converts float position to integer then call HideMapObject function in VCMP SDK.

If you want to hide an object. You can use this (https://forum.vc-mp.org/?topic=588.0).
You can use Moo Mapper to find an object.
Title: Re: RawHideMapObject and HideMapObject
Post by: BeckzyBoi on Jun 27, 2018, 12:33 PM
I don't need a convertor, but thanks for explaining the difference between the two functions. I will use HideMapObject.