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

Method GetScriptFunction

neo/d3xp/Actor.cpp:1333–1342  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1331=====================
1332*/
1333const function_t *idActor::GetScriptFunction( const char *funcname ) {
1334 const function_t *func;
1335
1336 func = scriptObject.GetFunction( funcname );
1337 if ( !func ) {
1338 scriptThread->Error( "Unknown function '%s' in '%s'", funcname, scriptObject.GetTypeName() );
1339 }
1340
1341 return func;
1342}
1343
1344/*
1345=====================

Callers

nothing calls this directly

Calls 3

GetFunctionMethod · 0.45
ErrorMethod · 0.45
GetTypeNameMethod · 0.45

Tested by

no test coverage detected