TruPotatoes Posted April 30, 2022 Share Posted April 30, 2022 I'm trying to make a character who is a fisherman, and regains sanity whenever he catches a fish. Any tips on how to do this? Link to comment https://forums.kleientertainment.com/forums/topic/139820-help-any-tips-for-detecting-when-the-player-catches-a-fish/ Share on other sites More sharing options...
TruPotatoes Posted May 1, 2022 Author Share Posted May 1, 2022 (edited) In case anyone else wants to do this for some reason, I figured it out and ended up adding these lines in the character's prefab somewhere above onload local function oncatchfish(inst) -- add sanity when catching a fish inst.components.sanity:DoDelta(15) end and this line inside of onload inst:ListenForEvent("fishingcatch", oncatchfish) hope this can help someone else! Edited May 2, 2022 by TruPotatoes Link to comment https://forums.kleientertainment.com/forums/topic/139820-help-any-tips-for-detecting-when-the-player-catches-a-fish/#findComment-1565840 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now