Jump to content

Need help with Spider Hat compatibility


Recommended Posts

I've got a mod character that has the "monster" tag and whenever he removes the hat it also removes the "monster" tag, I know that the "spiderwhisper" tag makes an exception for this but I don't want to use the "spiderwhisper" tag. Any ideas?

Link to comment
Share on other sites

Well, you could extend the onunequip function on the Spider Hat, where you log the owner of the hat in a variable, run the original function normally, and then check if the owner was your character prefab (if owner.prefab == "CHARACTER_PREFAB_NAME" then) and if so, add the "monster" tag.

Edited by Ultroman
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...