Page MenuHomeFeedback Tracker

Hideobject does not hide all objects at long ranges
New, NormalPublic

Description

I wanted to hide a section of a forest using hideObject command. However, when moving away from the forest some of the trees on the edge of the area I had hidden came back into view. Both HideObject and HideObjectGlobal produce same results.

Details

Severity
Trivial
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Operating System Version
SP1
Category
Scripting
Steps To Reproduce
  1. Hide some trees with HideObject
  2. Move away
  3. They come back into view
Additional Information

Script used for testing:

_trees = []; 
{
   
        _trees pushBack _x;
    
} forEach nearestObjects [getMarkerPos "poisto", [], 1000];

{
if (_x inArea "poisto") then
{
hideObject _x;

};
}
forEach _trees;

Event Timeline

Trade created this task.Nov 1 2016, 5:51 PM
dedmen added a subscriber: dedmen.EditedJan 10 2023, 5:54 PM

On one hand I'd say this is expected because terrain objects are streamed in/out.
But, why doesn't this always happen when hiding forests using the editor hideObject module?

Or does it happen there too and none noticed?