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

Method GetMaterial

CrySystem/ScriptObjectEntity.cpp:4905–4913  ·  view source on GitHub ↗

! Get the name of custom entity material. */

Source from the content-addressed store, hash-verified

4903/*! Get the name of custom entity material.
4904*/
4905int CScriptObjectEntity::GetMaterial(IFunctionHandler *pH)
4906{
4907 CHECK_PARAMETERS(0);
4908 if (m_pEntity && m_pEntity->GetMaterial())
4909 {
4910 return pH->EndFunction( m_pEntity->GetMaterial()->GetName() );
4911 }
4912 return pH->EndFunctionNull();
4913}
4914
4915
4916/*! Attach character hands with IK to some position

Callers 2

SetSecondShaderMethod · 0.45
SetShaderMethod · 0.45

Calls 3

EndFunctionMethod · 0.80
EndFunctionNullMethod · 0.80
GetNameMethod · 0.45

Tested by

no test coverage detected