MCPcopy Create free account
hub / github.com/SapphireServer/Sapphire / onPlayerSetup

Method onPlayerSetup

src/world/Script/ScriptMgr.cpp:464–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462}
463
464bool Sapphire::Scripting::ScriptMgr::onPlayerSetup( QuestBattle& instance, Entity::Player& player )
465{
466 auto script = m_nativeScriptMgr->getScript< Sapphire::ScriptAPI::QuestBattleScript >( instance.getDirectorId() );
467 if( script )
468 {
469 script->onPlayerSetup( instance, player );
470 return true;
471 }
472
473 return false;
474}
475
476bool Sapphire::Scripting::ScriptMgr::onInstanceInit( QuestBattlePtr instance )
477{

Callers 1

onBeforePlayerZoneInMethod · 0.45

Calls 1

getDirectorIdMethod · 0.45

Tested by

no test coverage detected