cassius Posted May 10, 2014 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++
Josh Posted May 10, 2014 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 Let's build cool stuff and have fun.
Rick Posted May 10, 2014 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
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.