hi guy's, im trying to make a firing system in gdscript following the tutorial on this website:
https://kidscancode.org/godot_recipes/3d/3d_shooting/
but theres an error in one
row:
func process(delta):
moveandcollide(Vector3.DOWN * fallingSpeed * delta)
if Input.isactionpressed("uiup"):
moveandcollide(transform.basis.x * moveSpeed * delta)
if Input.isactionpressed("uileft"):
rotate(Vector3.UP, +rotatingSpeed * delta)
if Input.isactionpressed("uiright"):
rotate(Vector3.UP, -rotatingSpeed * delta)
if Input.is_action_just_pressed("ui_accept"):
var b = Bullet.instance() <------ error
owner.add_child(b)
b.transform = $Cannon/Muzzle.global_transform
b.velocity = -b.transform.basis.z * b.muzzle_velocity
pass
this script is in the player