cassius Posted May 10, 2014 Share Posted May 10, 2014 If I place a model in the editor how do refer to it in c++ code? Thanks. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Josh Posted May 10, 2014 Share Posted May 10, 2014 One way is to add a hook to the Load function and look for an entity with the same name: http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/map/mapload-r510 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 May 10, 2014 Share Posted May 10, 2014 The other way is to loop over the world entities (world->entities I think) looking for the key "name" for the entity that you want, AFTER you've already loaded the map. 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.