Guest User

Untitled

a guest
Apr 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using Scripting;
  5.  
  6. namespace UserScripts
  7. {
  8.     /// <summary>
  9.     /// Enter description here
  10.     /// </summary>
  11.     public class WellScript : ScriptBase
  12.     {
  13.        
  14.         public void OnInteract(Actor actor, SceneryInstance scenery)
  15.         {   // you don't need to create a new actor called player, actor is the actor that right clicks.
  16.             // Actor Player;
  17.             // Player = actor;
  18.             actor.GiveItem("WaterBucket", 1);
  19.             actor.Output("You recived: 1 WaterBucket!");
  20.         }
  21.     }
  22. }
Add Comment
Please, Sign In to add comment