Breeziy Posted April 20, 2020 Share Posted April 20, 2020 (edited) Hi guys, me again! Is there any way to let a specific character have a sanity gain while holding certain items? I imagine the code for this can't be too complicated, but I'm not sure where to start as most items in game have a sanity aura which isn't exactly what I want. Specifically, I'm looking for something that will check if character x is holding gold or gems, then sanity will regen at a slow rate. Thank you in advance! Edited April 20, 2020 by Breeziy Link to comment Share on other sites More sharing options...
Thalkas Posted April 20, 2020 Share Posted April 20, 2020 I think something like Wurt with holding fish in her inventory bar? inst:AddComponent("itemaffinity") inst.components.itemaffinity:AddAffinity(nil, "PREFAB_NAME", TUNING.DAPPERNESS_MED, 1) Link to comment 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