Polloloco100 Posted February 21, 2023 Share Posted February 21, 2023 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 Link to comment https://forums.kleientertainment.com/forums/topic/146097-help-with-events-in-character-mod/ Share on other sites More sharing options...
-LukaS- Posted February 21, 2023 Share Posted February 21, 2023 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. Link to comment https://forums.kleientertainment.com/forums/topic/146097-help-with-events-in-character-mod/#findComment-1621509 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