I feel like I might be missing the easy solution here...
I got a dictionary, which includes a key / value par containing the reference to a .tscn. However, during the rest of the code, I cannot access that tscn, since the value gets interpreted as string instead of PackedScene, and so far I've failed to convert the value...
var weapon_data = {
"MG1" : {
weapon_params.damage : 1,
weapon_params.projectile_speed : 50,
weapon_params.fire_delay : 1,
weapon_params.projectile_scene : "res://scatter/bullet.tscn",
weapon_params.mount : weapon_type.gun
},
[...]
bulletScene = GameData.weapon_data["MG1"][GameData.weapon_params.projectile_scene]
fails with the debugger error "Trying to assign value of type 'String" to a variable of type 'PackedScene'.