Search Unity

Really basic health and damage script

Discussion in 'Getting Started' started by Aardwing, Nov 3, 2015.

  1. Aardwing

    Aardwing

    Joined:
    Nov 3, 2015
    Posts:
    24
    Hello,I just started re learning unity from a long break..and I am trying to start by doing a basic shooter.The player controls something like a turret (or even a mech later).However,I tried using a few basic health and damage scripts (Js) but some of them were too complicated for me,others came with more than enough errors to get me confused.I do have my player shoot script,and my enemy is going to be just some cubes.Could someone please show me the most basic,simple method for doing a health and damage script?I really would appreciate it,may it be only 3 lines of code.
     
  2. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,512
    The official Survival Shooter tutorial does a better job than I could of walking you through setting this all up.
     
    JoeStrout likes this.