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

Function SkillBarGetSkill

OsiInterface/Functions/PlayerFunctions.cpp:119–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 }
118
119 bool SkillBarGetSkill(OsiArgumentDesc & args)
120 {
121 auto characterGuid = args[0].String;
122 auto slot = args[1].Int32;
123 auto skillBarItem = SkillBarGetSlot(characterGuid, slot);
124 if (skillBarItem == nullptr) return false;
125
126 if (skillBarItem->Type == esv::SkillBarItem::kSkill) {
127 args[2].String = skillBarItem->SkillOrStatId.Str;
128 return true;
129 } else {
130 return false;
131 }
132 }
133
134 bool SkillBarFindSkill(OsiArgumentDesc & args)
135 {

Callers

nothing calls this directly

Calls 1

SkillBarGetSlotFunction · 0.85

Tested by

no test coverage detected