nanos world API Reference Unofficial documentation
Function Server Fast

Grenade:SetDamage

Sets Damage parameters of this Grenade

Syntax

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

Parameters

Name Type Default Description
base_damage optional integer 90 Max damage when inner radius
minimum_damage optional integer 0 Min damage when outer radius
damage_inner_radius optional integer 200 Radius which damage will be 100%
damage_outer_radius optional integer 1000 Radius which damage will be interpolated through falloff
damage_falloff optional float 1 Lerp function between Max and Min damage