Yes, basically you'd write two separate scripts. The master script
would send a linked message using llMessageLinked with a linknum
of LINK_THIS restricting the message to the same prim. The child
script would implement a link_message() event handler to handle
the linked message and then perform the code you want to run
concurrently.
// in master script somewhere
// see llMessageLinked documentation
llMessageLinked( LINK_THIS, 100, "", "" );
// end master script code
// in child script
default
{
link_message( integer sender_num, integer num, string str, key id )
{
// test to see if message num is the one we want to respond to
if (num==100)
{
// handle linked message here
}
}
}
// end child script code
I didn't use anything in the 3rd parameter of llMessageLinked
because this is a single message the scripts will use. If you had multiple
possible messages, you'd want to vary the num and/or str params of
llMessageLinked and respond accordingly. Basically if the num==100, it's
our message, no need for a string param. The 100 is arbitrarily chosen.
When sending messages to the same prim, be aware that an infinite loop
can be created quite easily, so take care in your use.