Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | AcoAlex |
In Godot 3 you were able to use:
enum TEST {ITEM1 = 0, ITEM2, ITEM3} export(TEST, FLAGS) var test_flags
But I can’t get this to work in Godot 4 or find a function that is replaced with that
Also: Can I put enums with flags into a function parameter? A exapmle for that would be:
enum ATTACK_TYPES {FIRE, WATER, EARTH}
func _ready():
add_attack("attack1", ATTACK_TYPES.FIRE.WATER) #Instead of ATTACK_TYPES.FIRE:WATER there would be the correct method to do that