Tool model||doc135666

September 20, 2022

Format

 item:model(act) 
  • The class to which the function belongs:item

Description

Get the item model id based on the behavior name.


Parameters

Variable name type Description
act string Behavior name, default value default


Value Returned

type Description
int model id


Code Samples

local modelID = item:model()