-
Notifications
You must be signed in to change notification settings - Fork 6
Scripting Introduction
WIP page NOTE: This tutorial is going to be focused on teaching non-programmers how to script in Lua. If its too basic / not basic enough, please let us know!
ULTRAKIT allows you to write custom scripts that to create entirely new behaviours for your content. These scripts are loaded by ULTRAKIT and given some default values to interact with the games code. They can be used to do almost anything within reason, and are therefore a very powerful tool.
However, scripting requires a little bit of knowledge on programming; this tutorial aims to catch non-programmers up to speed so that they can start making some basic addons
A script is a set of instructions that are executed line-by-line to try and perform some kind of task. For example, a very basic weapon script (at an abstract level) could be imagined as looking like this.
every frame:
was mouse pressed?
yes: create a revolver beam
no: do nothing