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

Function HitExecute

OsiInterface/Functions/DamageFunctions.cpp:447–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445 }
446
447 void HitExecute(OsiArgumentDesc const & args)
448 {
449 auto helper = HelperHandleToHelper(args[0].Int64);
450 if (helper == nullptr) return;
451
452 if (helper->Type != DamageHelpers::HT_CustomHit) {
453 OsiError("Called on a DamageHelper that is not a custom hit!");
454 return;
455 }
456
457 helper->Execute();
458 gOsirisProxy->GetExtensionState().DamageHelpers.Destroy(helper->Handle);
459 }
460
461 bool HitExecuteRetStatus(OsiArgumentDesc & args)
462 {

Callers

nothing calls this directly

Calls 3

HelperHandleToHelperFunction · 0.85
ExecuteMethod · 0.80
DestroyMethod · 0.80

Tested by

no test coverage detected