Ok, I couldn't get that to work so now I'm using a new method. I'm trying to change the animation of the x file altogether (now it has 2 animations).
How do I do this?
Code:
//load the normal animation
gunanim[0] = gProc.smgr->getMesh(".\\data\\gun1\\gun1.x");
if(gunanim[0])
{
guns[0] = gProc.smgr->addAnimatedMeshSceneNode(gunanim[0],cam,-1);
guns[0]->setVisible(false);
}
Error:
d:\pss4086new\source\player.cpp(6) : error C2440: '=' : cannot convert from 'class irr::scene::IAnimatedMesh *' to 'class irr::scene::IAnimatedMeshX *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Have I done something wrong?
________
JUGGALO