Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a way to establish communication between a rezzer and the object it rezzers via llRezObject, on-rez and object_rez
- // This script is for the object being rezzed.
- integer gChan; // channel sent by rezzer
- integer gHandle;
- default
- {
- on_rez(integer rez_param) // rez_param is the last parameter of llRezObject in the rezzer
- {
- gChan = rez_param;
- gHandle = llListen(gChan, "","",""); //listen on the channel to hear messages from the rezzer
- }
- listen(integer chan, string name, key id, string msg)
- {
- if(chan == gChan)
- {
- llOwnerSay("Rezzer said: " + msg);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement