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

Function FindGameObjectByHandle

OsiInterface/Functions/FunctionUtilities.cpp:56–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 }
55
56 esv::EoCServerObject * FindGameObjectByHandle(ObjectHandle const & handle, bool logError)
57 {
58 if (handle.Handle == 0) {
59 return nullptr;
60 }
61
62 auto character = FindCharacterByHandle(handle, false);
63 if (character != nullptr) {
64 return character;
65 }
66
67 auto item = FindItemByHandle(handle, false);
68 if (item != nullptr) {
69 return item;
70 }
71
72 if (logError) {
73 OsiError("No EoC server object found with this handle (0x" << std::hex << handle.Handle << ")");
74 }
75
76 return nullptr;
77 }
78
79 EntityWorld * GetEntityWorld()
80 {

Callers 3

OsirisPropertyMapGetRawFunction · 0.85
OnStatusHitEnterMethod · 0.85
OnApplyStatusMethod · 0.85

Calls 2

FindCharacterByHandleFunction · 0.85
FindItemByHandleFunction · 0.85

Tested by

no test coverage detected