Get skill configuration||doc135603

September 20, 2022

Format

 Skill.Cfg(fullName)
  • The class to which the function belongs:Skill

Description

Get skill configuration information. Both client and server can access.


Parameters

parameter name type Description
fullName string myplugin/ is spliced with the editor skill name

To get the configuration of the cast_grenade skill, the argument is ("myplugin/" .. "cast_grenade") or ("myplugin/cast_grenade")


Value Returned

type Description
config configuration information


Code Samples

local skillCfg = Skill.Cfg("myplugin/cast_grenade")
for key, value in pairs(skillCfg) do
    print(key, value)
end