it sets common callback functions for those entities without a script, by calling a common script function for materials / sounds etc. Client side only. @param pScriptSystem pointer to script system */ /////////////////////////////////////////////////////////////////////
| 850 | */ |
| 851 | ////////////////////////////////////////////////////////////////////////// |
| 852 | void CEntity::SetCommonCallbacks(IScriptSystem *pScriptSystem) |
| 853 | { |
| 854 | m_pOnCollide.Init(pScriptSystem,pScriptSystem->GetFunctionPtr("CommonCallbacks", "OnCollide")); |
| 855 | m_pOnStopRollSlideContact.Init(pScriptSystem,pScriptSystem->GetFunctionPtr("CommonCallbacks", "OnStopRollSlideContact")); |
| 856 | } |
| 857 | |
| 858 | ////////////////////////////////////////////////////////////////////////// |
| 859 | void CEntity::SetName(const char*name) |
nothing calls this directly
no test coverage detected