Does the issue occur in the editor or during gameplay?
Gameplay
If it's a gameplay issue, please specify which movement system and camera type you're using (free movement vs. grid movement, third-person vs. first-person) or N/A if not applicable:
grid first/third person only tested
Briefly describe the issue you're experiencing:
When you have an OnDeath script display a message, then load a map. The map fails to load with an error. Curiously it doesn't happen if those two functions are used when using an object, the map fails to load when you do them on-death however.
Are there any errors in the in-game debug console or external console window?
SCRIPT ERROR: execute_script_threaded: Invalid type in function 'get_eval_data' in base 'LoadMap'. Cannot convert argument 1 from Object to Object.
At: res://game.gde:5346

Provide the steps necessary to reproduce the issue:
- Assign an on death script that uses the display message followed by load map function
- kill the enemy, observe map fail to load and error in the console
Provide a download link to the bare bones project (strongly recommended if it's an in-game issue, since this helps significantly when attempting to reproduce it; the report will also be given more priority in this case):