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

Function FindGameObjectByNameGuid

OsiInterface/Functions/FunctionUtilities.cpp:37–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 esv::EoCServerObject * FindGameObjectByNameGuid(std::string const & nameGuid, bool logError)
38 {
39 auto character = FindCharacterByNameGuid(nameGuid, false);
40 if (character != nullptr) {
41 return character;
42 }
43
44 auto item = FindItemByNameGuid(nameGuid, false);
45 if (item != nullptr) {
46 return item;
47 }
48
49 if (logError) {
50 OsiError("No EoC server object found with GUID '" << nameGuid << "'");
51 }
52
53 return nullptr;
54 }
55
56 esv::EoCServerObject * FindGameObjectByHandle(ObjectHandle const & handle, bool logError)
57 {

Callers 4

OsirisPropertyMapSetRawFunction · 0.85
StatusPreventApplyFunction · 0.85
HitPrepareFunction · 0.85
SetGuidStringMethod · 0.85

Calls 2

FindCharacterByNameGuidFunction · 0.85
FindItemByNameGuidFunction · 0.85

Tested by

no test coverage detected