Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Two scripts in one prim

jukes Binder
Registered User
Join date: 21 Jul 2007
Posts: 2
09-08-2007 23:54
Can an object talk to inself? meaning i put two scripts in a single prim and make to prim talk, will the other script react? I am having issues.
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
09-09-2007 00:33
Yes, you want to use the llLinkMessage() function to send, and message_linked() event to receive.
jukes Binder
Registered User
Join date: 21 Jul 2007
Posts: 2
09-16-2007 11:32
Thank you
Ravanne Sullivan
Pole Dancer Extraordinair
Join date: 10 Dec 2005
Posts: 674
09-16-2007 11:49
llLinkMessage will also allow you to talk to scripts in the same prim, all prims or a select prim. A very useful function and more secure than trying to use chat. Please note that if the object is mod that someone could drop in a script that could listen to and even spoof messages so if you need absolute security you should consider some form of encryption.
_____________________
Ravanne's Dance Poles and Animations

Available at my Superstore and Showroom on Insula de Somni
http://slurl.com/secondlife/Insula de Somni/94/194/27/