Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GetFrameCore(loadout)
- local chassisModules = loadout.modules.chassis;
- for _, modInfo in pairs(chassisModules) do --chassis modules include cores and perks, need to find the core module
- local itemTypeId = modInfo.item_sdb_id;
- local itemId = modInfo.item_guid;
- local itemInfo = nil;
- if (itemId and itemId ~= 0) then
- itemInfo = Player.GetItemInfo(itemId);
- end
- if (not itemInfo) then
- itemInfo = Game.GetItemInfoByType(itemTypeId);
- end
- if itemInfo.moduleType == "Battleframe Core" then
- return modInfo.item_guid;
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement