Progetto H — Riferimento API Documentazione & Scripting
Funzione Server Veloce

Grenade:SetDamage

Sets Damage parameters of this Grenade

Non ancora tradotto

Sintassi

Lua
my_grenade:SetDamage(base_damage = 90, minimum_damage = 0, damage_inner_radius = 200, damage_outer_radius = 1000, damage_falloff = 1)

Parametri

Nome Tipo Predefinito Descrizione
base_damage facoltativo integer 90 Max damage when inner radius
minimum_damage facoltativo integer 0 Min damage when outer radius
damage_inner_radius facoltativo integer 200 Radius which damage will be 100%
damage_outer_radius facoltativo integer 1000 Radius which damage will be interpolated through falloff
damage_falloff facoltativo float 1 Lerp function between Max and Min damage