Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- doButton1(){
- llOwnerSay("button 1 pressed");
- }
- doButton2(){
- llOwnerSay("button 2 pressed");
- }
- default
- {
- state_entry()
- {
- }
- touch_start(integer total_number)
- {
- string primName = llGetLinkName(llDetectedLinkNumber(0));
- if (primName == "button1"){
- doButton1();
- } else if (primName == "button2"){
- doButton2();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement