! stops dialog (lip-synced); must be a character */
| 4865 | /*! stops dialog (lip-synced); must be a character |
| 4866 | */ |
| 4867 | int CScriptObjectEntity::StopDialog(IFunctionHandler *pH) |
| 4868 | { |
| 4869 | CHECK_PARAMETERS(0); |
| 4870 | if(m_pEntity && m_pEntity->GetCharInterface()) |
| 4871 | { |
| 4872 | ILipSync *pLipSync=m_pEntity->GetCharInterface()->GetLipSyncInterface(); |
| 4873 | if (!pLipSync) |
| 4874 | { |
| 4875 | m_pISystem->Warning( VALIDATOR_MODULE_SYSTEM,VALIDATOR_WARNING,0, |
| 4876 | 0,"Could not create lip-sync interface ! Does this entity %s have a character ?",m_pEntity->GetName() ); |
| 4877 | return pH->EndFunctionNull(); |
| 4878 | } |
| 4879 | if (!pLipSync->StopDialog()) |
| 4880 | { |
| 4881 | m_pISystem->GetILog()->Log("\005CLipSync::StopDialog failed for Entity %s",m_pEntity->GetName()); |
| 4882 | return pH->EndFunctionNull(); |
| 4883 | } |
| 4884 | } |
| 4885 | return pH->EndFunction(1); |
| 4886 | } |
| 4887 | |
| 4888 | /*! Set the material of the entity |
| 4889 | @param materialName Name of material. |
nothing calls this directly
no test coverage detected