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

Method SetContainer

CrySystem/ScriptObjectEntity.cpp:371–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371void CScriptObjectEntity::SetContainer(IScriptObject *pContainer)
372{
373 /*if(pContainer!=NULL)
374 {
375 EnablePropertiesMapping();
376 RegisterProperty("cnt",pContainer);
377 }*/
378 if(pContainer!=NULL)
379 m_pScriptThis->SetValue("cnt",pContainer);
380 else
381 m_pScriptThis->SetToNull("cnt");
382// _SmartScriptObject pCntTest(m_pScriptSystem,true);
383// if(!m_pScriptThis->GetValue("cnt",pCntTest))
384
385}
386
387/*! Get the position of the entity
388 @return Three component vector containing the entity position

Callers 1

Calls 2

SetToNullMethod · 0.80
SetValueMethod · 0.45

Tested by

no test coverage detected