Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer channel=55; // Channel to listen on
- default
- {
- state_entry()
- {
- llSay(0, "READY");
- llListen(channel, "","","");
- }
- listen(integer channel, string name, key id, string message)
- {
- if (message == "Sky") // On receiving msg "Sky"...
- {
- llOwnerSay("IP "+(string)llGetPos());
- llSetPos(llGetPos()+<0.0, 0.0, 0.1>); // you can eliminate a global variable
- llOwnerSay("FP "+(string)llGetPos());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement