Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Squatnet | |
Old Version | Published before Godot 3 was released. |
Is it possible to do something like
func set_cargo(type, amt, val):
dict.cargo.contents.[type].amount = amt
dict.cargo.contents.[type].value = val