Jump to content

Recommended Posts

Hello, I'm making my first mod, it's a custom character based around a chicken, and I'm having a bit of trouble with events.

I want to make my character drop a red feather when an enemy hits him, so I used the "healthdelta" event (is there a list or something with all events?), it works fine, but the problem is that this code also generates feathers whenever his health changes (healing, temprature damage, etc), and want to only drop them when an enemy attacks him.

Here's the character's .lua file:

pollo.lua

Use "attacked" instead of "healthdelta".

There is no explicit list or table of all events but if you're using a code editor with a function to search for phrases searching for PushEvent should find you every instance of an event getting pushed.

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