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

Function FindCharacterByHandle

OsiInterface/Functions/FunctionUtilities.cpp:154–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 }
153
154 esv::Character * FindCharacterByHandle(ObjectHandle const & handle, bool logError)
155 {
156 auto component = FindComponentByHandle(ComponentType::Character, handle, logError);
157 if (component != nullptr) {
158 return (esv::Character *)((uint8_t *)component - 8);
159 } else {
160 return nullptr;
161 }
162 }
163
164 esv::Item * FindItemByNameGuid(std::string const & nameGuid, bool logError)
165 {

Callers 4

OnStatusHitEnterMethod · 0.85
OnStatusHealEnterMethod · 0.85
SummonFunction · 0.85
FindGameObjectByHandleFunction · 0.85

Calls 1

FindComponentByHandleFunction · 0.85

Tested by

no test coverage detected