Get tag number from name

I have named my A* tags. How can I get the number of the tag from its name?

Something like:

graphUpdateScene.setTag = TagFromName("water");

I could probably write a component that initializes the A* tag names and to create a translation table, but I feel like this probably is built in, and I just cannot find it in the docs.

Hmm, there is actually no such function at the moment. The closes analogue is:

1 Like