Escape Simulator

Escape Simulator

Design your own escape rooms!
Try community-built escape rooms (more than 3000 of them), or try your hand at designing your own! Create new puzzles, riddles, or whatever comes to your mind!
Learn More
chpl 13 Aug, 2024 @ 3:02am
LUA get inserted Key
Hello :)

How cann I get the inserted Key of a slot ? I don't get it. The document doesn't show a sample.

I tried something like:
elseif callType == LuaCallType.Slot then
api.getElement(slot_1).insertedKey
slot_1.insertedKey
end

where "slot_1" is the script varible name of the slot. And "key" is the key element in the slot.
I tried so many things but couldn't figure it out :(.

Best regards.