mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-30 15:47:56 +03:00
Updated VScript : Basic I:O Tutorial (markdown)
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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user