Page 1 of 1

Checking the ID of a trigger

Posted: Sat Oct 25, 2014 4:04 am
by jcqrd
Hi, I have multiple buttons linked to a single script, and I'm trying to have the script determine which button triggered it. I added a variable to the script and it gives me a hexadecimal table, but I cannot manage to turn that into an id or anything. Any property I add returns nil.

Code: Select all

function checkTrigger(trigger)
print(trigger)
print(trigger.id)
end
table: 0x46edd46
nil

Any insight?

Re: Checking the ID of a trigger

Posted: Sat Oct 25, 2014 8:30 am
by AdrTru
print(trigger.go.id)

Re: Checking the ID of a trigger

Posted: Sat Oct 25, 2014 10:05 am
by jcqrd
Thank you. :D