PRT: SEND

PRT: SEND is a C3/DS CAOS command used in the timer script or activation script of a connectable agent to send a signal from the specified output port to all connected input ports. The signal can be any integer, or a variable such as _p1_.

Documentation
PRT: SEND (command) id (integer) data (anything)

Send a signal from the specified output port to all connected inputs. The data can be any integer.

Examples
Timer script of the smell emitter (ov70 is the intensity of smell given off)

setv va99 ov70 mulv va99 50 prt: send 0 va99 endm
 * send the intensity you are emitting to the port
 * scaled up so that max nearly equals 255