User Tools

Site Tools


lgscript:actreactsrv

ActReactSrv

React

Perform a reaction response.

Returns boolean success
Parameter integer or string reaction kind
Parameter number intensity
Parameter integer source
Parameter integer destination
Parameter any data1 (optional)
Parameter any data2 (optional)
Parameter any data3 (optional)
Parameter any data4 (optional)
Parameter any data5 (optional)
Parameter any data6 (optional)
Parameter any data7 (optional)
Parameter any data8 (optional)

GetReactionNamed

Get the ID of a reaction response.

Returns integer or nil reaction kind
Parameter string reaction name

GetReactionName

Get the name of a reaction response.

Returns string or nil reaction name
Parameter integer reaction kind

SubscribeToStimulus

Register an object to receive stimulus messages of a particular type. Either subscribe by script, or use the Send to Scripts response, but not both.

Returns boolean success
Parameter integer destination
Parameter integer stimulus

UnsubscribeToStimulus

Stop listening for stimulus messages

Returns boolean success
Parameter integer destination
Parameter integer stimulus

BeginContact

Initiate a stimulus contact on an object.

Returns boolean success
Parameter integer stimulus
Parameter integer destination

EndContact

Stop a stimulus contact on an object.

Returns boolean success
Parameter integer stimulus
Parameter integer destination

SetSingleSensorContact

Briefly touch an object.

Returns boolean success
Parameter integer stimulus
Parameter integer destination

Stimulate

Stimulate an object.

Returns boolean success
Parameter integer target
Parameter integer stimulus
Parameter number intensity
Parameter integer source
lgscript/actreactsrv.txt · Last modified: 2009/08/25 22:05 (external edit)