I was wondering if anybody has a solution for the following situation: We can name an object: AC_CREW_0_xxx, AC_CREW_1_xxx, AC_CREW_2_xxx, etc.... These objects will appear only when these teams/cars are loaded in game. Is there a way which do the opposite? Like when team 1-3 is in game these objects will be hidden? I want to make pit garage doors which are open when team is in game and closed when not.
There might be a way... but dont quote me on it, all theory. What if you do 2 objects for the door, one name AC_CREW etc... and the other whatever object name you want. Same material for both - with alpha properties. Have the AC CREW kn5 carry the texture with black alpha channel, and the non AC CREW kn5 carry another texture with white alpha. If you prioritize the AC CREW in models.ini, it should use its texture first, therefor, no garage door.
I also wanted this for my track. I tried with lods, I failed . @Johnr777 's idea is much more intelligent, it might work! Please post if you succeed
Just did my first test. And I can say: SUCCESS!!! It works exact the way @Johnr777 suggested. I will post some screens and more details soon.
So here we go. How to do open closed pit garages step by step: Create two garage door objects for every garage pit slot. And assign the same material to all of them. Create two textures with alpha channel, one for open, one for closed door name all objects you'll use for open doors: AC_CREW_0, AC_CREW_1, AC_CREW_2, etc... and assign the open garage texture to them name all the objects for closed doors how you want (I used: GD_0_closed, GD_1_closed, GD_2_closed, etc...) and export these to a new fbx, load it in ks Editor and apply the closed garage texture to them. So all closed and open garage doors do have the same material but with two different textures. Export a closedgaragedoors.kn5 in models ini load closedgaragedoors.kn5 after your kn5 with open doors Sounds a bit complicated but it works.
Man, this is so awesome. I know it's just a thing that many will not care, but I feel very excited about it! Thank you for sharing. Always pushing forward, awesome guys you are