MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / CallObjectFrameCommand

Method CallObjectFrameCommand

neo/game/Game_local.cpp:2663–2675  ·  view source on GitHub ↗

================ idGameLocal::CallObjectFrameCommand ================ */

Source from the content-addressed store, hash-verified

2661================
2662*/
2663void 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================

Callers 1

CallFrameCommandsMethod · 0.45

Calls 6

ErrorFunction · 0.50
GetFunctionMethod · 0.45
IsTypeMethod · 0.45
c_strMethod · 0.45
CallFunctionMethod · 0.45
ExecuteMethod · 0.45

Tested by

no test coverage detected