LPCSTR CScriptGameObject::sound_voice_prefix () const { CInventoryOwner* pInventoryOwner = smart_cast<CInventoryOwner*>(&object()); if (!pInventoryOwner) { ai().script_engine().script_log (ScriptStorage::eLuaMessageTypeError,"sound_voice_prefix available only for InventoryOwner"); return NULL; } return pInventoryOwner->SpecificCharacter().sound_voice_prefix(); }