MCPcopy Create free account
hub / github.com/Norbyte/ositools / FindItemByHandle

Function FindItemByHandle

OsiInterface/Functions/FunctionUtilities.cpp:174–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 }
173
174 esv::Item * FindItemByHandle(ObjectHandle const & handle, bool logError)
175 {
176 auto component = FindComponentByHandle(ComponentType::Item, handle, logError);
177 if (component != nullptr) {
178 return (esv::Item *)((uint8_t *)component - 8);
179 } else {
180 return nullptr;
181 }
182 }
183
184 esv::GameAction * FindGameActionByHandle(ObjectHandle const & handle)
185 {

Callers 3

SummonFunction · 0.85
FindGameObjectByHandleFunction · 0.85
SkillBarGetItemFunction · 0.85

Calls 1

FindComponentByHandleFunction · 0.85

Tested by

no test coverage detected