Yue Posted February 9, 2021 Share Posted February 9, 2021 I create a box brush on a map, and in a script I put the following code and I have an unexpected closing of Leadwerks. function Script:Start() self.box = World:GetCurrent():FindEntity("Box") end function Script:Update() self.box:Hide() end Any suggestions? The log file is blank, it has nothing in it. It should be noted that this does not happen with an external mesh. Quote Link to comment Share on other sites More sharing options...
Josh Posted April 12, 2021 Share Posted April 12, 2021 Needs a working example we can run. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Rick Posted April 12, 2021 Share Posted April 12, 2021 If I recall brushes get collapsed unless it has a script attached to it. I assume the script above is NOT on the brush in question so the brush got collapsed which results in not being able to get an instance of the brush (which must be causing LE to just close). Put an empty script on the brush called Box and try this again. Quote 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.