Jump to content

how can I specify that beefalo/pigs must be angry for my mod to trigger?


Recommended Posts

I'm very new to modding so this might be a dumb question. my mod shows the attack and aggro range of creatures on client side and I want to be able to show that range only when a beefalo is in heat or angry, as well as pigs when they're angry. is that possible while keeping it client side?

I've attached my modmain.lua

modmain.lua

Link to comment
Share on other sites

I remember there being a mod that shows attack ranges for mobs when they aggro onto a player. You might want to look into it if you don't know what to do.

As for advice from me, you'll most likely need to check the combat replica (not the component, since it only exists on the server) and check the _target net var. If the target is ThePlayer then show attack range.

Link to comment
Share on other sites

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
 Share

×
  • Create New...