Skip to content

Internal Script Error: Opcode :0  #99360

Description

@KOE-TYS

Tested versions

currently only seen in v4.2.2

System information

Windows 10- Godot _v4.2.2-stable

Issue description

The error happened at runtime. The output was this : internal script error, Opcode: 0(please report)
I guess this must be some internal engine bug.It happened to Timer created in the scene tree using the await keyword which was being run in the physics_process function.

Steps to reproduce

func _shoot():

	if can_shoot:
		can_shoot = false
		var b = turret.ammo_type.instantiate()
		get_tree().root.add_child(b)
		b.global_position = muzzle.global_position
		b.global_rotation = muzzle.global_rotation - (PI/2)
		**await get_tree().create_timer(0.5).timeout** // Error Line 
		can_shoot = true

Minimal reproduction project (MRP)

I dont know

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions