tipforeveryone Posted February 11, 2017 Share Posted February 11, 2017 This is Leadwerks 4.3 This problem happens when you choose a box to be --entity "Point", it works fine with Pivot Run this simple thing and you will get error when pressing A Link to comment Share on other sites More sharing options...
macklebee Posted February 11, 2017 Share Posted February 11, 2017 Does 'box 5' have mass or a script attached to it? If not, then it has been collapsed with the rest of the scriptless, massless CSG in the scene - essentially making 'box 5' no longer a viable standalone entity. If you are wanting to use a massless, scriptless CSG entity for setting the position for something based on a key hit, then i would suggest obtaining the position of that entity in the Start function to be used later in UpdateWorld() - as it appears the Start functions are called prior to the CSG collapsing. Script.point = nil --Entity "Point" function Script:Start() self.pos = self.point:GetPosition(true) end function Script:UpdateWorld() if window:KeyHit(Key.A) then self.entity:SetVelocity(0,0,0) self.entity:SetPosition(self.pos,true) end end Or just use a pivot or attach an empty script to the CSG... 1 Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Josh Posted February 14, 2017 Share Posted February 14, 2017 Is this resolved? 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...
Josh Posted February 15, 2017 Share Posted February 15, 2017 I believe this will work in the latest beta build. 1 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...
tipforeveryone Posted February 18, 2017 Author Share Posted February 18, 2017 Yes, it was fixed, thank you Link to comment Share on other sites More sharing options...
Josh Posted February 18, 2017 Share Posted February 18, 2017 Good! I want everything to work perfectly. Thank you for helping. 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