MiceOnABeam Product Documentation

Modified: 3/18/2016 2:49 PM
Recently changed articles You can subscribe to this wiki article using an RSS feed reader.

LSL Event

An event in LSL represents the occurrence of some activity within your virtual world. If a script wishes to respond to the occurrence of a particular event, then it must define a Transition in the MiceOnABeam model, which specifies:

  • The State the script must be in to receive the event;
  • The LSL Event which the transition will respond to.
  • The conditions under which the occurring event should be responded to (Guard Condition);
  • An action to take;
  • The next state to proceed to after processing the event.

LSL has a fixed set of events that can be used in a transition which are shown below. Each event has a set of parameters which contains the data that is provided to the script along with the event.

MiceOnABeam also supports the internal Completion Event which is used in conjunction with a Final State.  Note that Users cannot define their own events. For further details on LSL events and their parameters, please see the LSL Wiki.

Event Parameters
at_rot_target (integer tnum, rotation targetrot, rotation ourrot)
at_target (integer tnum, vector targetpos, vector ourpos)
attach (key id)
changed (integer change)
collision (integer num_detected)
collision_end (integer num_detected)
collision_start (integer num_detected)
control (key id, integer held, integer change)
dataserver (key queryid, string data)
email (string time, string address, string subj, string message, integer num_left)
experience_permissions (key agent_id)
experience_permissions_denied (key agent_id, integer reason)
http_response (key request_id, integer status, list metadata, string body)
http_request (key request_id, string method, string body)
land_collision (vector pos)
land_collision_end (vector pos)
land_collision_start (vector pos)
link_message (integer sender_num, integer num, string str, key id)
listen (integer channel, string name, key id, string message)
money (key id, integer amount)
moving_end ()
moving_start ()
no_sensor ()
not_at_rot_target ()
not_at_target ()
object_rez (key id)
on_rez (integer start_param)
path_update (integer type, list reserved)
remote_data (integer event_type, key channel, key message_id, string sender, integer idata, string sdata)
run_time_permissions (integer perm)
sensor (integer num_detected)
timer ()
touch (integer num_detected)
touch_start (integer num_detected)
touch_end (integer num_detected)
transaction_result (key id, integer success, string data)

 

Tags:
Home: MiceOnABeam Product Documentation Copyright © 2010-2018 MiceOnABeam Software