Search Unity

Healing like bandages / medkits food etc

Discussion in 'Scripting' started by TinkerBalls, Feb 20, 2018.

  1. TinkerBalls

    TinkerBalls

    Joined:
    Feb 20, 2018
    Posts:
    4
    someone can tell me the scripts for this healing like bandages medkits food etc
     
  2. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536
    Heal();
     
    Baste, Lurking-Ninja and LaneFox like this.
  3. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,534
    Code (csharp):
    1. Heal();
    Ftfy
     
    Baste, SparrowGS and Lurking-Ninja like this.
  4. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536
    On a more serious note, op, with out any code of your own we can't help, we don't know any thing about your game
     
  5. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,665
    I think the OP wants us to code for him.
     
  6. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,534
    We did. See my post.
     
    SparrowGS likes this.
  7. GroZZleR

    GroZZleR

    Joined:
    Feb 1, 2015
    Posts:
    3,201
    Copy your Damage script but change all of the - to +.