------------------------------------------------------------------------------
| 2088 | // |
| 2089 | //------------------------------------------------------------------------------ |
| 2090 | int CScriptObjectSystem::SetGrasshopperCGF(IFunctionHandler *pH) |
| 2091 | { |
| 2092 | CHECK_PARAMETERS(1); |
| 2093 | IEntity *pEntity; |
| 2094 | int nID; |
| 2095 | pH->GetParam(1,nID); |
| 2096 | pEntity=m_pEntitySystem->GetEntity(nID); |
| 2097 | if(pEntity){ |
| 2098 | CEntityObject obj; |
| 2099 | int slot=0; |
| 2100 | while(pEntity->GetEntityObject(slot, obj)) |
| 2101 | { |
| 2102 | m_p3DEngine->SetGrasshopperCGF(slot++, obj.object); |
| 2103 | } |
| 2104 | for( ;slot<4; ) |
| 2105 | m_p3DEngine->SetGrasshopperCGF(slot++, NULL); |
| 2106 | } |
| 2107 | return pH->EndFunction(); |
| 2108 | } |
| 2109 | |
| 2110 | |
| 2111 |
nothing calls this directly
no test coverage detected