Advertisement
Gayngel

Menus in 2 objects

Jul 16th, 2015
602
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. In your menu calling a menu in another object :
  2.  
  3. if(message == "button pushed") // This being the button you push on the menu to call the other menu.
  4.  
  5. {
  6. llMessageLinked(link_number,"","Open Menu", "");
  7. llListenRemove(this_object's_listener); //Close the listener of the old menu.
  8. }
  9.  
  10.  
  11. In your object receiving a message to open it's menu:
  12.  
  13. link_message(integer sender_num, integer num, string msg, key id))
  14. {
  15. if (message == "Open Menu")
  16. {
  17.  
  18. listen_handle = llListen(channel,"","",""); // open a new listener for the menu
  19.  
  20. llDialog(...) ; //open the menu
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement