Maple653

LC NutCrackerEnemyAI line 87-104

Dec 16th, 2023
2,642
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | Source Code | 0 0
  1. // Token: 0x06000326 RID: 806 RVA: 0x0001CA28 File Offset: 0x0001AC28
  2.     private void GrabGun(GameObject gunObject)
  3.     {
  4.         this.gun = gunObject.GetComponent<ShotgunItem>();
  5.         if (this.gun == null)
  6.         {
  7.             base.LogEnemyError("Gun in GrabGun function did not contain ShotgunItem component.");
  8.             return;
  9.         }
  10.         this.gun.SetScrapValue(this.setShotgunScrapValue);
  11.         this.gun.parentObject = this.gunPoint;
  12.         this.gun.isHeldByEnemy = true;
  13.         this.gun.grabbableToEnemies = false;
  14.         this.gun.grabbable = false;
  15.         this.gun.shellsLoaded = 2;
  16.         this.gun.GrabItemFromEnemy(this);
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment