# "Standalone lambdas cannot be accessed, consider assigning to variable"

**URL:** <https://forum.godotengine.org/t/standalone-lambdas-cannot-be-accessed-consider-assigning-to-variable/940>\
**Category:** Archive\
**Created:** [May 30, 2023, 3:31pm UTC](https://forum.godotengine.org/t/standalone-lambdas-cannot-be-accessed-consider-assigning-to-variable/940 "2023-05-30T15:31:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forum.godotengine.org/uploads/default/original/2X/4/4b0a7fa8a6334634b94a13d421f0d99e6f04e21f.svg) [@system](https://forum.godotengine.org/u/system)\
**Post date:** [May 30, 2023, 3:31pm UTC](https://forum.godotengine.org/t/standalone-lambdas-cannot-be-accessed-consider-assigning-to-variable/940/1 "2023-05-30T15:31:28Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **Attention** | Topic was automatically imported from the old Question2Answer platform. |
| 👤 | **Asked&nbsp;By** | Laser |

I was following a video on how to make a gun recoil animation in Godot 3d when I came across this error

```auto
	func _fire():

```

This is the code. its just the one line and I tried assigning to a variable but I’m new to Godot and t didn’t work, suggestions?

Perhaps this is completed later in the video, but that’s just a guess as it isn’t linked. To fix the error, just do this for now in lieu of the video completing the function?

```auto
func _fire():
    pass

```

(and this may also help: [GDScript reference — Godot Engine (stable) documentation in English](https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_basics.html))

spaceyjase | 2023-05-30 15:38

thank you I will test this

Laser | 2023-05-30 15:39
