mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-29 23:27:57 +03:00
Updated VScript : Basic I:O Tutorial (markdown)
parent
5c3d17b5f8
commit
9684c37e32
@ -18,7 +18,7 @@ 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()` 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.
|
||||
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 the name `SetPlayerHealthTo85` will be used in this tutorial for simplicity.
|
||||
|
||||
After you have added `SetPlayerHealthTo85`, add a `{` on the line below it. Then, add a `}` below that one.
|
||||
|
||||
@ -32,7 +32,7 @@ function SetPlayerHealthTo85()
|
||||
|
||||
Now we will make the function actually fire `SetHealth` on the player.
|
||||
|
||||
In between the `{` and `}` lines, add a new line with `EntFire()` inside.
|
||||
In between the `{` and `}` lines, add a new line with the text "EntFire()".
|
||||
|
||||
```squirrel
|
||||
function SetPlayerHealthTo85()
|
||||
|
Loading…
x
Reference in New Issue
Block a user