Lena80 Member Jan 8, 2019 #1 Heyy whenever aplayer eat it consumes the whole food stack heres my messy food.cs **thanks** Attachments Food.cs 34.3 KB · Views: 5
Neshoba Member Jan 9, 2019 #2 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
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
PyrO Moderator Jan 9, 2019 #3 Code: if ( from.InRange( this.GetWorldLocation(), 1 ) ) { Eat( from ); this.Delete(); } remove the this.Delete();
Code: if ( from.InRange( this.GetWorldLocation(), 1 ) ) { Eat( from ); this.Delete(); } remove the this.Delete();