Hi all,
It's been a little while since I've used irrlicht, so I'm trying to get back into the mindset of it all. Anyways, stupid question here, but I'm trying to remove an IMeshSceneNode from the scene that is owned by a game object. Specifically, an ammo box. I'm working on a LAN/Internet based FPS, and on the client side, the ammo box is more of a graphical token than anything else. I have it play a pickup sound when taken, but I want the actual object dropped (delete cl_AmmoBox). This all works fine and dandy, but the actual box is still in the scene. I can't call node()->drop because it crashes the program. How can I clean up the scene contents of the object?
Quick Question...
Quick Question...
-=Sachiel7=-
-
- Competition winner
- Posts: 78
- Joined: Tue Jul 08, 2008 5:18 pm
- Location: Guarapuava/Brazil
- Contact:
i'm coding exactly this part of my game right now, the drop() method is only used when you create an object calling a method which starts with "create", for example:
in other cases you use remove().
Code: Select all
driver->createTexture(dimension2d<s32>(128, 128));
Prof. Andres Jessé Porfirio
Federal Technological University of Parana (UTFPR)
www.andresjesse.com
http://irrrpgbuilder.sourceforge.net
Federal Technological University of Parana (UTFPR)
www.andresjesse.com
http://irrrpgbuilder.sourceforge.net