Entity.TryBuffCfg||doc136915

September 20, 2022

Format

local cfg = Entity.TryBuffCfg(fullName)
  • Class that Function belongs to : Config
  • Call limit : Common

Description

Get configuration information of Buff templates.

Parameters

Variable name Type Description
fullName string template path, path format is "myplugin/".. "templateID"

Code Samples

Create an Buff template with the ID "testBuff", then use code to get its configuration information and print it

local cfg = Entity.TryBuffCfg("myplugin/" .. "testBuff")
for k, v in pairs(cfg) do
    print(k, v)
end