! Get the AI name of the entity. Can be different than entity name. @return AI Name of the entity */
| 484 | @return AI Name of the entity |
| 485 | */ |
| 486 | int 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 |
nothing calls this directly
no test coverage detected