nanos world API Reference Unofficial documentation
Event Client

Weapon.BulletHit

Triggered when bullets hit (this will be triggered for each bullet shot)

Syntax

Lua
Weapon.Subscribe("BulletHit", function(self, impact_point, impact_normal, damage, actor_hit)
    -- il tuo codice
end)

Arguments

Name Type Default Description
self Weapon
impact_point Vector Location in world space of the bullet hit
impact_normal Vector Normal of the bullet hit in world space
damage integer Damage that was applied
actor_hit optional Actor? Actor entity that was hit, if any