Checking the ID of a trigger
Posted: Sat Oct 25, 2014 4:04 am
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.
table: 0x46edd46
nil
Any insight?
Code: Select all
function checkTrigger(trigger)
print(trigger)
print(trigger.id)
endnil
Any insight?