================ idGameLocal::CallObjectFrameCommand ================ */
| 2661 | ================ |
| 2662 | */ |
| 2663 | void idGameLocal::CallObjectFrameCommand( idEntity *ent, const char *frameCommand ) { |
| 2664 | const function_t *func; |
| 2665 | |
| 2666 | func = ent->scriptObject.GetFunction( frameCommand ); |
| 2667 | if ( !func ) { |
| 2668 | if ( !ent->IsType( idTestModel::Type ) ) { |
| 2669 | Error( "Unknown function '%s' called for frame command on entity '%s'", frameCommand, ent->name.c_str() ); |
| 2670 | } |
| 2671 | } else { |
| 2672 | frameCommandThread->CallFunction( ent, func, true ); |
| 2673 | frameCommandThread->Execute(); |
| 2674 | } |
| 2675 | } |
| 2676 | |
| 2677 | /* |
| 2678 | ================ |
no test coverage detected