I'm trying to write a script trigger that can be sent from one prim to many prims (well actually only two). Basic scenarion is you Touch the trigger prim and it say a command to activates the others. The transmitter works but can't seem to make the reciever work.
Reciever test script:
// Door Lock Script -- based on JohnG Linden
integer gLockChannel = 9394834;
string gOpenMsg = "MSG_OPEN";
//
// states begin here
//
default
{
state_entry()
{
llSay( 0, "Reciever Script Running"
;llListen(gLockChannel, "", "", ""
; // and go to closed state
state door_closed;
}
}
state door_closed
{
listen(integer channel, string name, key id, string msg)
{
if ( msg == gOpenMsg )
{
llSay( 0, "Open Msg recieved"
;}
}
}
------------
Transmitter test script:
// Based on Door Lock Script -- JohnG Linden
//
integer gLockChannel = 9394834;
string gOpenMsg = "MSG_OPEN";
//
//
// States
//
default
{
state_entry()
{
llSay (0, "Transmitter Script Running"
;}
touch_start(integer num_touches)
{
llSay(gLockChannel, gOpenMsg);
llSay(0, "Open Message sent = " + gOpenMsg);
}
}
Can anyone assist please?
Tarak
