Jump to content
Sign in to follow this  
Panadur

Hide Buildings on Map

Recommended Posts

Hi Guys,

Is there a way to hide a special building on a map? For Example, i would like to hide the Land_a_stationhouse in Elektro, but not that one in Chernogorsk.

I know how to hide all buildings on a map that belong to the same class, but i would like to do this for few buildings only.

I know i can check player position and then use nearestobjects and then use hideobject, but i think this is not very efficient way, to hide buildings.

I'd like to define the hidden buildings at mission start and not check if the player is near the objects i want to hide again and again.

I would be very grateful if someone could help me with this

Share this post


Link to post
Share on other sites

You can use the object ID of the building. Im not in my pc right now, but just search the forums or google for how to use the OID.

Share this post


Link to post
Share on other sites

Place a logic on top of the building. In the logic init:

hide1 = nearestBuilding this; hide1 hideObject true; hide1 enableSimulation false;

You can change the variable "hide1" to whatever you wish. If you want to hide multiple buildings, just increment the variable (hide1, hide2, hide3, etc.) for each logic.

Unfortunately, this method does not work for every type of building/object.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×