I can see in Lua-API something about Tags.
Question:
Does the tags works with Dune2000 units?
What are these? I mean, the tags, in general.
It looks like infantry, at least, has no tag.
I see several function:
- bool AddTag(string tag) - Add a tag to the actor.
- bool HasTag(string tag)
- bool RemoveTag(string tag)
and so on...
Tags. Add a tag to the actor.
Dune2000
Re: Tags. Add a tag to the actor.
Tags work on every actor type that has the "ScriptTags" trait. You may need to add that in D2k.
Re: Tags. Add a tag to the actor.
Would you like to explain me? What is the tag?
This is string. So I can write any text for some objects, right? Like label. Or something else?
This is string. So I can write any text for some objects, right? Like label. Or something else?
Re: Tags. Add a tag to the actor.
Yes, it is just a label, nothing more.
Re: Tags. Add a tag to the actor.
Thank you.
So I found that, by default, tags are off. And I need to write in Rules.yaml, for light infantry, for example :
Can I write text for tag in yaml too?
I already found function for Lua:
AddTag(string tag) - Add a tag to the actor.
So I found that, by default, tags are off. And I need to write in Rules.yaml, for light infantry, for example :
Code: Select all
light_inf:
ScriptTags:
I already found function for Lua:
AddTag(string tag) - Add a tag to the actor.
Re: Tags. Add a tag to the actor.
Yes, you can add tags to individual actors in map.yaml like this: https://github.com/OpenRA/OpenRA/blob/6 ... .yaml#L281
Re: Tags. Add a tag to the actor.
Thank you very much! It works.