Jump to content

Removing tags on custom character


Recommended Posts

I'm trying to remove the "scarytoprey" tag from the player when playing as a cutsom character, but I'm not sure where or what to add to remove this tag. How do you remove tags applied to the player for a custom character?

Nevermind I've figured it out, sorry

Link to comment
Share on other sites

1 hour ago, Eggs4Lyfe said:

I'm trying to remove the "scarytoprey" tag from the player when playing as a cutsom character, but I'm not sure where or what to add to remove this tag. How do you remove tags applied to the player for a custom character?

Nevermind I've figured it out, sorry

AddPrefabPostInit("you_character_prefab_here", function(inst)
    if GLOBAL.TheWorld.ismastersim then
        inst:RemoveTag("scarytoprey")
    end
end)

Maybe this help you.
Oh, I'm too late see this: Nevermind I've figured it out, sorry

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