mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-04-11 12:10:09 +03:00
Updated VScript : Basic Entity Code Tutorial (markdown)
parent
2d402339e7
commit
b9ff8c7ca6
@ -210,7 +210,7 @@ function SetPlayerHealthToAllOfNPC()
|
|||||||
local health = 0
|
local health = 0
|
||||||
|
|
||||||
local wyatt = null
|
local wyatt = null
|
||||||
while((wyatt = Entities.FindByName(wyatt,"wyatt")) != null)
|
while ( (wyatt = Entities.FindByName(wyatt,"wyatt")) != null )
|
||||||
{
|
{
|
||||||
health += wyatt.GetHealth()
|
health += wyatt.GetHealth()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user