MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / SetCommonCallbacks

Method SetCommonCallbacks

CryEntitySystem/Entity.cpp:852–856  ·  view source on GitHub ↗

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 */ /////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

850*/
851//////////////////////////////////////////////////////////////////////////
852void 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//////////////////////////////////////////////////////////////////////////
859void CEntity::SetName(const char*name)

Callers

nothing calls this directly

Calls 2

GetFunctionPtrMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected