Advertisement
Gayngel

User Functions Lesson 1, Box 1, Script 1 Completed Script

Apr 27th, 2016
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. key Owner;
  2. key av;
  3.  
  4. OSay()
  5. {
  6.    
  7.    av = llDetectedKey(0);
  8.      
  9.       if(av == Owner)
  10.       {
  11.       llOwnerSay("Hello World!");
  12.       }
  13.  
  14.  
  15. }
  16.  
  17.  
  18. default
  19. {
  20.    state_entry()
  21.    {
  22.      
  23.      Owner = llGetOwner();
  24.        
  25.    }
  26.    
  27.    on_rez(integer start_param)
  28.    {
  29.    
  30.      llResetScript();  
  31.        
  32.     }
  33.    
  34.    touch_end(integer num)
  35.    {
  36.      
  37.       OSay();
  38.        
  39.    }
  40.    
  41.    collision_start(integer num)
  42.    {
  43.      
  44.     OSay();
  45.        
  46.        
  47.    }  
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement