Page MenuHomeFeedback Tracker

Cannot apply hideSelection on an object structure created as a simple object
New, NormalPublic

Description

For example I want to remove the metal lamps off the galley room but upon applying the code to the init and starting the scenario the 'metal_lamps' wont hide. I cannot say the same for other structures but I have tried it with the garage by trying to hide "door_1" but it doesn't work.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 8 x64
Category
Design-Sandbox
Steps To Reproduce
  1. Open 3den Editor and place a Game Logic (Name it test_1)
  1. Insert following code in the Init

bld_1 = createSimpleObject ["a3\structures_f_aow\civilian\gallery_01\galleryinterior_01_west_F.p3d", getPosASL test_1];
bld_1 hideSelection ["metal_lamps", true];

  1. Play the scenario
  1. Observe that the lamps are still visible
Additional Information

Event Timeline

338Caliber renamed this task from Cannot apply hideSelection on a object structures created as a simple object to Cannot apply hideSelection on a object structure created as a simple object.
338Caliber renamed this task from Cannot apply hideSelection on a object structure created as a simple object to Cannot apply hideSelection on an object structure created as a simple object.Apr 5 2021, 7:07 AM
dedmen added a subscriber: dedmen.Apr 8 2021, 11:13 AM

Make sure you're actually checking selections in the visual lod.
Your last image says "List Points" which to me sounds like you're listing memory points, memory points are not selections that you can hide.

Make sure you're actually checking selections in the visual lod.
Your last image says "List Points" which to me sounds like you're listing memory points, memory points are not selections that you can hide.

I have this as 'List Points' on the unit:

this addAction ["List Points", {hint str [selectionNames cursorObject]}];

goobin added a subscriber: goobin.Apr 15 2021, 5:16 AM