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

Method onWithinRange

src/world/Script/ScriptMgr.cpp:204–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204bool Sapphire::Scripting::ScriptMgr::onWithinRange( Entity::Player& player, uint32_t eventId, uint32_t param1,
205 float x, float y, float z )
206{
207 auto script = m_nativeScriptMgr->getScript< Sapphire::ScriptAPI::EventScript >( eventId );
208 if( !script )
209 return false;
210 script->onWithinRange( player, eventId, param1, x, y, z );
211 return true;
212}
213
214bool Sapphire::Scripting::ScriptMgr::onOutsideRange( Entity::Player& player, uint32_t eventId, uint32_t param1,
215 float x, float y, float z )

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected