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

Function FindGameActionByHandle

OsiInterface/Functions/FunctionUtilities.cpp:184–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 }
183
184 esv::GameAction * FindGameActionByHandle(ObjectHandle const & handle)
185 {
186 auto const & lib = gOsirisProxy->GetLibraryManager();
187 auto actionMgr = lib.GetGameActionManager();
188
189 for (uint32_t i = 0; i < actionMgr->GameActions.Size; i++) {
190 auto action = actionMgr->GameActions.Buf[i];
191 if (action->MyHandle == handle) {
192 return action;
193 }
194 }
195
196 OsiError("Nm game action found with handle " << (int64_t)handle);
197 return nullptr;
198 }
199
200 ShootProjectileApiHelper::ShootProjectileApiHelper()
201 {

Callers 3

GameActionDestroyFunction · 0.85
GameActionGetLifeTimeFunction · 0.85
GameActionSetLifeTimeFunction · 0.85

Calls 1

GetGameActionManagerMethod · 0.80

Tested by

no test coverage detected