MCPcopy Create free account
hub / github.com/adventuregamestudio/ags / RunScriptFunctionInRoom

Function RunScriptFunctionInRoom

Engine/script/script.cpp:484–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482}
483
484bool RunScriptFunctionInRoom(const String &tsname, size_t param_count, const RuntimeScriptValue *params)
485{
486 if (!roomscript)
487 return false; // room is not loaded yet
488
489 return RunScriptFunction(roomscript.get(), tsname, param_count, params) == kScFnRes_Done;
490}
491
492// Run non-claimable event in all script modules, *excluding* room;
493// break if certain changes occured to the game state

Callers 1

RunScriptFunctionAutoFunction · 0.85

Calls 2

RunScriptFunctionFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected