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

Method GetAIName

CrySystem/ScriptObjectEntity.cpp:486–494  ·  view source on GitHub ↗

! Get the AI name of the entity. Can be different than entity name. @return AI Name of the entity */

Source from the content-addressed store, hash-verified

484@return AI Name of the entity
485*/
486int CScriptObjectEntity::GetAIName(IFunctionHandler *pH)
487{
488 CHECK_PARAMETERS(0);
489 string sName;
490 if (m_pEntity->GetAI())
491 sName=m_pEntity->GetAI()->GetName();
492
493 return pH->EndFunction(sName.c_str());
494}
495
496
497

Callers

nothing calls this directly

Calls 4

EndFunctionMethod · 0.80
GetAIMethod · 0.45
GetNameMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected