calaos / calaos_base

Calaos server
https://calaos.fr
GNU General Public License v3.0
160 stars 37 forks source link

Add a way to determine which input(s) triggered a LUA script #133

Closed mifrey00 closed 7 years ago

mifrey00 commented 7 years ago

Add a way to determine in a LUA script which input(s) triggered this script. This would allow to execute different instructions depending on the input(s) that changed.

raoulh commented 7 years ago

Usage:

local trigger_id = calaos:getEnv("trigger_id")

print("Id that triggered: " .. trigger_id)

return false
mifrey00 commented 7 years ago

Great!