Download

Copy a specific gameplay tag (inherit)?

Hi,

What’s the correct way to copy gameplay tags? I have a set of tags like ‘Team.A’, ‘Team.B’, ‘WeaponType.Energy’ etc but I only want to copy the ‘Team’ tags to a spawned actor. How do I do that?

I essentially want to inherit specifics of a tag container, and not just using ‘set’ that will copy everything.

Thanks.

Pardon the bump but I’d really like to find this out… is this a feature that goes against how it’s meant to get used? It would be so useful, but all I can find is ‘add tag’… so you’ll have to run a bunch of test cases to see if you need to add something, and if you want to duplicate all tags (on or off) you have to do a bunch more stuff that seems so useful that I’d be surprised it’s not there.

I think I don’t understand what the issue is. Can you explain it with some examples.

Thanks for your response. So let’s say I have 2 actors:

Actor A has tags:

Team.A
Damage.Electric

Actor B has tags:

Team.B
Damage.Explosion

I want to code the function ‘Copy “Team” tag from Actor A to Actor B, and remove whatever tag Actor B previously had as “Team”’.
So after I’ve done this Actor B should look like this:

Actor B after copying of ‘Team’ tag:

Team.A
Damage.Explosion

Cheers!

How about this:

Function (it can easily be cleaned and improved):

](filedata/fetch?id=1806884&d=1598901887)

Usage:

](filedata/fetch?id=1806885&d=1598901894)

Result:

Actor A:

3.jpg](filedata/fetch?id=1806886&d=1598901918)

Actor B:

4.jpg](filedata/fetch?id=1806887&d=1598901927)

Actor B now with:

6.jpg](filedata/fetch?id=1806888&d=1598901942)

It removed Team.B and qweTeam.C from Actor B and copied Team.A and Team.Rocket from A to B.