Jump to content

How do you delete a model?


Scott Richmond
 Share

Recommended Posts

Hi,

 

I need to be able to completely remove a model instance from a running LE game during runtime via C++. Any ideas? I've tried .free() and it seems to do nothing. I've tried deleting the pointer object, but I don't think Model has a comprehensive destructor setup.

Help?

Programmer, Modeller

Intel Core i7 930 @ 3.5GHz | GeForce 480 GTX | 6GB DDR3 RAM | Windows 7 Premium x64

Visual Studio 2008 | Photoshop CS3 | Maya 2009

Website: http://srichnet.info

Link to comment
Share on other sites

Have you tried Free(m); where m is your model/entity?

Tools:

AC3D | 3D Canvas(pro) | Texture Maker(pro) | Genetica(basic) | 3D World Studio | Fragmotion |Leadwerks 2 | XNA 4 | Visual Studio 2010 Professional | XCode 5.x |UU3D Pro

 

Programing & Scripting Languages:

C |C++ | C# | Obj-C | LUA | Javascript | PHP | Ruby

Link to comment
Share on other sites

.free should do it... I have no problems at all using the procedural FreeEntity command. I believe though you have to call UpdateWorld (or whatever the OO version is) after freeing an entity before it actually will properly unload...

LE Version: 2.50 (Eventually)

Link to comment
Share on other sites

Hi,

 

I need to be able to completely remove a model instance from a running LE game during runtime via C++. Any ideas? I've tried .free() and it seems to do nothing. I've tried deleting the pointer object, but I don't think Model has a comprehensive destructor setup.

Help?

What are you expecting it to do? Freeing an entity deletes it.

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...