YouGroove Posted February 27, 2014 Share Posted February 27, 2014 It is possible to have some for example floor and objects BSP and other models as child objects; than calling some function on that floor that would hide the floor and all objects ? By hide i mean : no physics, no lights, no rendering. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 27, 2014 Share Posted February 27, 2014 Count all children. Then loop through all children and use the Hide command. no physics, invisible, no shadow Quote Link to comment Share on other sites More sharing options...
YouGroove Posted February 27, 2014 Author Share Posted February 27, 2014 It won't work with BSP without script as child ? Perhaps better make some room or level part as one model only , than call Hide() on one object only. Would be great if LE3 would have portal system. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Rick Posted February 27, 2014 Share Posted February 27, 2014 You might want to test attaching a script to say the floor brush only, and then making all the other parts of the room children to the floor brush. Because all the others are children to a brush that doesn't get collapsed, it might make them not get collapsed and so hiding the floor might hide them all. Give it a test. Quote Link to comment Share on other sites More sharing options...
YouGroove Posted February 27, 2014 Author Share Posted February 27, 2014 I tested and it just hides itself not childs. It is normal as you won't use child objects on everything and lot of times you won't want functions you call to propagate to child objects indeed. Let's say with BSP or when modeling it's to you to group stuff. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Rick Posted February 27, 2014 Share Posted February 27, 2014 Hiding a parent should hide children for non csg though. So I guess the other option is to attach dummy scripts to the other csg parts. Quote Link to comment Share on other sites More sharing options...
YouGroove Posted February 28, 2014 Author Share Posted February 28, 2014 Well if i got to attach script each time i create some BSP wall, after hundred, i would just throw computer througth window Let's forget protal system for now. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 28, 2014 Share Posted February 28, 2014 You can select all you children and add a script to them at the same time. No need for manual assigning. Doesn't the option 'Don't merge on load' solve this problem? Quote Link to comment Share on other sites More sharing options...
YouGroove Posted February 28, 2014 Author Share Posted February 28, 2014 Ok that's great for multiple entities script at same time. For performance, i doubt some heavy BSP houses of some level part having all some script could drop frame rate down. Well let's forget portal for now Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.