Updated VScript : Basic I:O Tutorial (markdown)

Blixibon 2020-05-24 23:49:10 -05:00
parent dcfc2652d7
commit 5c3d17b5f8

@ -18,9 +18,9 @@ Open the file using Notepad, Notepad++, or any other text editor.
Inside of this script file, we will add code which makes the player fire the `SetHealth` input with a parameter of `85`.
First, add `function SetPlayerHealthTo85()`. This will be what causes `SetHealth` to fire. Think of the function as an input in an I/O system. You can technically use any name for this function, but `SetPlayerHealthTo85` will be used in this tutorial for simplicity.
First, add `function SetPlayerHealthTo85()` at the top of the file. This will be what causes `SetHealth` to fire. You can technically use any name for this function, but `SetPlayerHealthTo85` will be used in this tutorial for simplicity.
After you have added `SetPlayerHealthTo85`, add a `{` on the line below it, and then another `}` below that.
After you have added `SetPlayerHealthTo85`, add a `{` on the line below it. Then, add a `}` below that one.
Your file should now look like this: