//////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// ![DEBUG ONLY]return an entity by his name */
| 945 | /*![DEBUG ONLY]return an entity by his name |
| 946 | */ |
| 947 | int CScriptObjectSystem::GetEntityByName(IFunctionHandler *pH) |
| 948 | { |
| 949 | CHECK_PARAMETERS(1); |
| 950 | IEntity *pEntity; |
| 951 | IScriptObject *pObject; |
| 952 | const char *sEntityName; |
| 953 | pH->GetParam(1,sEntityName); |
| 954 | pEntity=m_pEntitySystem->GetEntity(sEntityName); |
| 955 | if(pEntity) |
| 956 | { |
| 957 | pObject=pEntity->GetScriptObject(); |
| 958 | return pH->EndFunction(pObject); |
| 959 | } |
| 960 | return pH->EndFunctionNull(); |
| 961 | |
| 962 | } |
| 963 | ///////////////////////////////////////////////////////////////////////////////// |
| 964 | ///////////////////////////////////////////////////////////////////////////////// |
| 965 | /*int CScriptObjectSystem::RemoveTexture(IFunctionHandler *pH) |
nothing calls this directly
no test coverage detected