![]() |
|
Object Tags from event script - Printable Version +- LogicMachine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Object Tags from event script (/showthread.php?tid=2863) |
Object Tags from event script - Frank68 - 22.09.2020 Hi I try to get atomaticaly Obtect tag from an event script. Code: id=event.dst
name = grp.alias(id)
tags = 'aa'
alert(name .. " ".. id .. " " ..tags)BR RE: Object Tags from event script - admin - 22.09.2020 https://openrb.com/docs/lua.htm#grp.gettags RE: Object Tags from event script - Frank68 - 22.09.2020 (22.09.2020, 12:53)admin Wrote: https://openrb.com/docs/lua.htm#grp.gettags Ok but return a table i neede to return tags string for object event. RE: Object Tags from event script - admin - 22.09.2020 You can convert like this: Code: tbl = { 'tag1', 'tag2', 'tag3' }
str = table.concat(tbl, ', ')
log(str)RE: Object Tags from event script - Erwin van der Zwart - 22.09.2020 Hi, Try: Code: grp.find(event.dst).tagcacheErwin |