Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Evento Client

Weapon.BulletHit

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

Non ancora tradotto

Sintassi

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

Argomenti

Nome Tipo Predefinito Descrizione
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 facoltativo Actor? Actor entity that was hit, if any