YouGroove Posted October 15, 2015 Share Posted October 15, 2015 A prefab with script moves and collides then it is realeased. The same prefab loaded by another script just does not collides ? it seems a bug. Just dezip it as a new directory "test" in your project root folder and launch the map file. test.zip Stop toying and make games Link to comment Share on other sites More sharing options...
YouGroove Posted October 16, 2015 Author Share Posted October 16, 2015 1 Stop toying and make games Link to comment Share on other sites More sharing options...
Admin Posted October 16, 2015 Share Posted October 16, 2015 You are right. It appears the brush shape is not being copied with copied brushes. A temporary workaround is to rebuild it yourself: function Script:fireBall() local fireball = Prefab:Load(self.prefabFireBall,Map.LoadScripts) fireball:BuildShape() 1 Link to comment Share on other sites More sharing options...
DooMAGE Posted July 24, 2016 Share Posted July 24, 2016 Same problem here so I guess this is not fixed yet? I have a CSG brush as prefab and when I load it, there is no collision. BuildShape() worked for me but I can't find nothing about it in the documentation pages. Is BuildShape() resource intensive? My Leadwerks games! https://ragingmages.itch.io/ Link to comment Share on other sites More sharing options...
Josh Posted July 26, 2016 Share Posted July 26, 2016 Fixed for the next build. 2 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...
Recommended Posts