Error to add group

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

What the hell?

ERROR: add_to_group: Condition "!p_identifier.operator String().length()" is true.

Post your relevant code.

jgodfrey | 2020-12-23 15:41

public class GlobalVars : Node
 {
    public string group_entity;
    public string group_animal;
public string group_tehnic;
public string group_all;
public override void _Ready()
{
	group_entity = "ENTITY";
	group_animal = "ANIMAl";
	group_tehnic = "TEHNIC";
	group_all = "ALL";
}

}

	GlobalVars localgroups = new GlobalVars();
 ...
	public override void _Ready()
	{
	AddToGroup(localgroups.group_animal);
	AddToGroup(localgroups.group_all);
...

VarionDrakon | 2020-12-23 17:40

Two codes for each of the individual scripts

VarionDrakon | 2020-12-23 17:42