Jump to content
Sign in to follow this  
KarmaT UK

Show/Hide Layer from Script?

Recommended Posts

Hi, iv just discovered layers today and man i wish i had a lot earlier. They do exaclty what i had been doing manually with long scripts.

 

Iv been using the Show / Hide module and triggers in my tests, but that wont quite work how i want it to for the mission, and id rather do it in a script.

 

I think i need a line for the init to hide 7 layers, then the line for the script that shows the next one, and hides the last one.

 

Hopefully this will make my mission performance a lot better, simply hiding all the layers except the first gained me 10fps because i wasnt hiding the props before that :)  

 

PS i found this but not quite sure how to use it. 

 

https://community.bistudio.com/wiki/set3DENLayer

Share this post


Link to post
Share on other sites


    {
        _x enableSimulation true;
        _x hideObject false;
    } forEach (getMissionLayerEntities "MyCustomLayer" select 0);

?

  • Like 3
  • Thanks 3

Share this post


Link to post
Share on other sites

Hello, Lexx:
This is a very interesting topic. Can you do a more didactic development?

Thank you.

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  

×