MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / callScript

Method callScript

source/game/StarNpc.cpp:570–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

568}
569
570Maybe<LuaValue> Npc::callScript(String const& func, LuaVariadic<LuaValue> const& args) {
571 return m_scriptComponent.invoke(func, args);
572}
573
574Maybe<LuaValue> Npc::evalScript(String const& code) {
575 return m_scriptComponent.eval(code);

Callers 4

validateEdgeMethod · 0.45
makePlayerCallbacksMethod · 0.45
entityQueryImplFunction · 0.45
callScriptedEntityMethod · 0.45

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected