Jump to content

Recommended Posts

Is there a function I can write in the food luas that checks for a character's tag? I'd actually also like to make it so one of my friend's characters gets a bonus from it, and having the food check for different characters, and acting accordingly, seems like it'd be simpler than having them checking for the food's tag

Well then you have 2 possibility

AddComponentPostInit on "edible" and modify the GetSanity, GetHealth and GetHunger functions

AddComponentPostInit on "eater" and modify the Eat (easier but messier)

 

Otherwise you could also write a oneat function that you apply to both your characters and you do not need to alter any component like that

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...