Skip to content

Commit a8bf277

Browse files
authored
docs: fix mistake in docs
1 parent e4e1221 commit a8bf277

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

docs/src/ScriptingReference/core-callbacks.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ For more information on how callbacks generally work see [the callbacks section]
1313

1414
This will be called right after a script has been loaded or reloaded. This is a good place to initialize your script. You should avoid placing a lot of logic into the global body of your script, and instead put it into this callback. Otherwise errors in the initialization will fail the loading of the script.
1515

16-
This callback will not have access to the `entity` variable, as when the script is being loaded it's not attached to an entity yet.
17-
1816
```lua
1917
print("you can also use this space, but it's not recommended")
2018
function on_script_loaded()
@@ -26,8 +24,6 @@ end
2624

2725
This will be called right before a script is unloaded. This is a good place to clean up any resources that your script has allocated. This is called both before a script is removed as well as before a script is reloaded. If you want to preserve the state of your script across reloads, you can return a value from this callback, which will be passed to `on_script_reloaded` when the script is reloaded.
2826

29-
This callback will not have access to the `entity` variable, as when the script is being unloaded it might not be attached to an entity.
30-
3127
```lua
3228
function on_script_unloaded()
3329
print("Goodbye world")
@@ -40,8 +36,6 @@ end
4036
Called right after `on_script_loaded` but only if the script was reloaded.
4137
The callback is passed a state argument, this state is exactly what is returned by the script through `on_script_unloaded` before a reload happens.
4238

43-
This callback does not have access to the `entity` variable.
44-
4539
```lua
4640
mode = 1
4741
function on_script_reloaded(value)

0 commit comments

Comments
 (0)