Lena80

Member
Heyy whenever aplayer eat it consumes the whole food stack heres my messy food.cs


**thanks**
 

Attachments

  • Food.cs
    34.3 KB · Views: 5
line 226 if ( from.Hunger >= 20 )
line 241 if ( iHunger >= 19 )
not sure on any of this but numbers are not matching which could possibly cause this
 
Code:
            if ( from.InRange( this.GetWorldLocation(), 1 ) )
            {
                Eat( from );
                this.Delete();
            }

remove the this.Delete();
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back