Attention | Topic was automatically imported from the old Question2Answer platform. | |
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