i'm trying to write my own item, but for some reason the lua file for the item is not tied up, the path works exactly because after clicking the right mouse button on the path, vscode opens the necessary file for me, please help me for an hour I've been racking my brain
LinkLuaModifier( "modifier_item_bkb", "items/item_bkb.lua", LUA_MODIFIER_MOTION_NONE )
--Abilities
if item_bkb == nil then
item_bkb = class({})
end
function item_bkb:GetIntrinsicModifierName()
return "modifier_item_bkb"
end
---------------------------------------------------------------------
--Modifiers
if modifier_item_bkb == nil then
modifier_item_bkb = class({})
end
function modifier_item_bkb:IsHidden() return false end
function modifier_item_bkb:OnCreated(params)
print('test')
if IsServer() then
end
end
function modifier_item_bkb:OnRefresh(params)
if IsServer() then
end
end
function modifier_item_bkb:OnDestroy()
if IsServer() then
end
end
function modifier_item_bkb:DeclareFunctions()
return {
MODIFIER_PROPERTY_STATS_STRENGTH_BONUS
}
end
function modifier_item_bkb:GetModifierBonusStats_Strength()
return 1000
end