KyE039 Posted September 4, 2021 Share Posted September 4, 2021 Hello and I have been working on a mod ... I want my character to kill any sea fish ... get sanity ... but I have not managed to find the names of the ocean fish ... if you could help me I would be very grateful. . I've been using this code and trying names but none of them work. inst: ListenForEvent ("killed", function (inst, data) local victim = data.victim if (victim ~= nil and (victim.prefab == "wobster_moonglass_land" or victim.prefab == "oceanfish_Runty Guppy_1")) then inst.components.sanity: DoDelta (10) end end ) Link to comment https://forums.kleientertainment.com/forums/topic/133284-help-to-know-how-to-configure-my-mod/ Share on other sites More sharing options...
Monti18 Posted September 6, 2021 Share Posted September 6, 2021 https://dontstarve.fandom.com/wiki/Ocean_Fishes Here are all different prefab names for the ocean fishes. 1 Link to comment https://forums.kleientertainment.com/forums/topic/133284-help-to-know-how-to-configure-my-mod/#findComment-1491510 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