Expected parameter name problem

Godot Version

<stable4.2>

Question

<

func set_spawn_range(var new_value):
	spawn_range = new_value

an error: expected parameter name. How can I solve this error?

It will be:

func set_spawn_range(new_value):
	spawn_range = new_value
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.