Skip to content

Commit

Permalink
🐛 fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ReactiioN1337 committed Nov 7, 2017
1 parent 6440b82 commit e81583e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ Writing scripts in [lua](https://www.lua.org/manual/5.1/) is very easy. Checkout
In order that the script file can be successfully executed you need to declare the function `onScriptTick`.
```lua
function onScriptTick()
# your code here
-- your code here
end
```

If you have custom data and/or resources which needs to be initialized once and before the actual script then you should declare also the function `onScriptInitialize`.
```lua
function onScriptInitialize()
# your code here
-- your code here
end

function onScriptTick()
# your code here
-- your code here
end
```

Expand Down

0 comments on commit e81583e

Please sign in to comment.