if IsServer() then
ListenToGameEvent("npc_spawned", function(keys)
local unit = EntIndexToHScript(keys.entindex)
if unit:IsRealHero() then
unit:AddNewModifier(nil, nil, "modifier_example", {})
end
end, nil)
end
modifier_example = class({})
function modifier_example:IsHidden()
return true
end
function modifier_example:GetModifierIgnoreMovespeedLimit()
return 1
end