GetDeviceId
Returns device id from entity.
Parameters
Returns
HasDevice
Returns has access to given device id.
Parameters
Returns
AddInteraction
Adds interaction to the devices.
Parameters
ctx: {id: string; devices: string[]; label: string; icon: string; accessRequired?: boolean; onInteract: function(entity, deviceId); isEnabled: function(entity, deviceId);}
AccessGive
Grants device access to the given source.
Parameters
Returns
AccessGiveByUserId
Grants device access to the given userId.
Parameters
Returns
AccessRemove
Removes device access from the given source.
Parameters
Returns
AccessRemoveByUserId
Removes device access from the given userId.
Parameters
Returns
AccessShare
Shares access with given target if player has access.
Parameters
Returns
no-spy:glasses:activate
Activates glasses if equipped.
no-spy:motionsensor:use
Starts motion sensor placement.
no-spy:motionsensor:notify
Sends sensor notification.
Parameters
no-spy:photo:ready
This event will be triggered by us when the photo is ready. You can change normal behavior by listening this event.
Parameters
ctx: {image: string; date: number}
no-spy:photo:ready
This event will be triggered by us when the photo is ready. You can change normal behavior by listening this event.
Parameters
ctx: {image: string; date: number}
no-spy:motionsensor:notify
Sends sensor notification to device owners.
Parameters