Jump to content

Recommended Posts

2 hours ago, zonydragon said:

What do I change it to? Like what is the tag, I don't really know what that is specifically.

Tags are in simple terms just markers the game uses to lump things together and check if something is apart of those things (literally "tagging" them). Your character will actually have a bunch, like "player", by default from player_common. However you are able to add tags yourself.

Change the "yourcharactertaghere" in modmain to something like "taran", something unique so its not already being used. Then in your common_postinit in your character prefab add inst:AddTag("taran") or whatever you choose for the tag in place of "taran." Both the one in modmain and the one in your prefab need to be exactly the same.

7 hours ago, kipper0k said:

i think this metod dont work with armor

This one should work with armor, its multiplying the damage value then sending it back to GetAttacked, which contains the call to apply damage to armor and have it be reduced.

11 hours ago, Merkyrrie said:

Tags are in simple terms just markers the game uses to lump things together and check if something is apart of those things (literally "tagging" them). Your character will actually have a bunch, like "player", by default from player_common. However you are able to add tags yourself.

Change the "yourcharactertaghere" in modmain to something like "taran", something unique so its not already being used. Then in your common_postinit in your character prefab add inst:AddTag("taran") or whatever you choose for the tag in place of "taran." Both the one in modmain and the one in your prefab need to be exactly the same.

This one should work with armor, its multiplying the damage value then sending it back to GetAttacked, which contains the call to apply damage to armor and have it be reduced.

Oh, it's working now! Thanks a lot ya'll <3

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
×
  • Create New...