Jump to content

Recommended Posts

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
)

 

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...