Weird names in groups

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By heavyathan

I’m experiencing a very weird behaviour in the group names:

In below image, I have my player in a group called “Player”, but when I print the group with:

print("player grupo = ", get_groups()[0])

I get this group tag shown in image, “_vp_input1311”.

Image

Of course, is the only group of the node, and other npcs in groups works correctly, so I understand nothing.

:bust_in_silhouette: Reply From: jgodfrey

The group names that start with _ are internal group names. The docs mention that and also provide a code snippet to ignore internal group names when using get_groups. See here for details.

Ok, clear. Thank you very much.

I wasn’t aware about internal groups.

I have to reddo some things, but fortunatelly I was beginning to use them in my prototype.

heavyathan | 2022-09-19 06:38