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

Method GetScriptFunction

neo/game/Actor.cpp:1285–1294  ·  view source on GitHub ↗

===================== idActor::GetScriptFunction ===================== */

Source from the content-addressed store, hash-verified

1283=====================
1284*/
1285const function_t *idActor::GetScriptFunction( const char *funcname ) {
1286 const function_t *func;
1287
1288 func = scriptObject.GetFunction( funcname );
1289 if ( !func ) {
1290 scriptThread->Error( "Unknown function '%s' in '%s'", funcname, scriptObject.GetTypeName() );
1291 }
1292
1293 return func;
1294}
1295
1296/*
1297=====================

Callers

nothing calls this directly

Calls 3

GetFunctionMethod · 0.45
ErrorMethod · 0.45
GetTypeNameMethod · 0.45

Tested by

no test coverage detected