Jump to content

How do I add a new tag to an existing local table?


Recommended Posts

Hello!

To make bees ignore the modded character I'm working on, I'm currently attempting to add my character's tag to the bee's RETARGET_CANT_TAGS table. Thing is, I'm not entirely sure how to do that?

I'm pretty sure this line somewhere in the modmain will do the trick, but I'm not entirely sure how to make it work properly with postinit.

table.insert(RETARGET_CANT_TAGS, 1, "beekeeper")

 

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