Yue Posted July 29, 2017 Share Posted July 29, 2017 Load the map using Lua script, which has for example a camera and a cube. Is it possible to access the cube of the uploaded map? For example map.cube: Turn (0,1,0) Quote Link to comment Share on other sites More sharing options...
macklebee Posted July 29, 2017 Share Posted July 29, 2017 Keep in mind that all csg objects will be collapsed into one object unless it has a script or mass. If its collapsed you will not be able to access it in a manner that you are wishing to above. 1 Quote 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...
gamecreator Posted July 29, 2017 Share Posted July 29, 2017 In C you can find entities by name so you could do something like world->FindEntity("mynamedcube")->SomeEntityCommand; But it's undocumented so I don't know if it's available in Lua. 1 Quote Link to comment Share on other sites More sharing options...
Yue Posted July 29, 2017 Author Share Posted July 29, 2017 Cool!! Sun = world:FindEntity("Sun") Sun:Turn(1,1,1) 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.