MA2 Lua 函数库

  1. 主页
  2. 文档
  3. MA2 Lua 函数库
  4. gma.show.getobj.class() 【获取对象类别函数】

gma.show.getobj.class() 【获取对象类别函数】

函数名:获取对象类别
调 用:gma.show.getobj.class(number:handle)
参 数:数字:对象的handle
返回值:字符串:对象的类别名称
结 果:
备 注:获取对象handle可以使用 gma.show.getobj.handle()

例子:

  • 在控台的 System monitor 中显示“Group 1”编组1类别名称
function Start()
    local handle_num = gma.show.getobj.handle("executor 1.1");
    local class_name = gma.show.getobj.class(handle_num);
    gma.echo(class_name);
end
return Start;
标签 , ,
这篇文章对您有用吗?

发表回复

您的电子邮箱地址不会被公开。