This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Object Tags from event script
#1
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)
where is the way to get TAGS ?

BR
Reply
#2
https://openrb.com/docs/lua.htm#grp.gettags
Reply
#3
(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.
Reply
#4
You can convert like this:
Code:
tbl = { 'tag1', 'tag2', 'tag3' }
str = table.concat(tbl, ', ')
log(str)
Reply
#5
Hi,

Try:
Code:
grp.find(event.dst).tagcache
BR,

Erwin
Reply


Forum Jump: