Description
This is the component provided by the Biometric Reader block.
Component name: os_biometric
.
This is the component provided by the Biometric Reader block.
Component name: os_biometric
.
setEventName(name:string)
changes the event name to the given argument
bioReader(address: string, reader_uuid: string, player_uuid: string)
This signal is queued by the biometric reader when used by a player.
address
is the address of the reader
reader_uuid
is the uuid of the reader
player_uuid
is the uuid of the player
-- https://github.com/PC-Logix/OpenSecurity/wiki/BiometricReader
event = require("event") -- require event
reader = require("component").os_biometric -- require the biometric reader
function onRead(address, reader_uuid, player_uuid) -- function to call once the reader is used.
print(player_uuid .. " entered!") -- print the UUID of the player that was scanned.
end
event.listen("bioReader", onRead) -- listen to the bioReader event