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