KarmaT UK 1 Posted May 11, 2019 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
lexx 1364 Posted May 11, 2019 { _x enableSimulation true; _x hideObject false; } forEach (getMissionLayerEntities "MyCustomLayer" select 0); ? 3 3 Share this post Link to post Share on other sites
Coladebote 46 Posted May 13, 2019 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