Getting an Actor from an MWClass?
Getting an Actor from an MWClass?
As the title says, how would I get an object of class MWClass::Actor from a MWClass?
Re: Getting an Actor from an MWClass?
That makes no sense. What are you trying to do exactly? Perhaps you're looking for MWWorld::Ptr::getClass()?
Re: Getting an Actor from an MWClass?
So I have a MWWord::Ptr which points to an NPC, and I need to get the AiCombatStorage of the actor.
Re: Getting an Actor from an MWClass?
I'm trying to fix bug 3935 which entails getting mStrength from an AiCombatStorage in character.cpp
Re: Getting an Actor from an MWClass?
That sounds like a wrong way to do it. The AI should call the character controller, not the other way around.
Re: Getting an Actor from an MWClass?
So how should I pass mStrength to CharacterController::updateWeaponState()?