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

Vehicle.Hit

Triggered when Vehicle hits something

Non ancora tradotto

Sintassi

Lua
Vehicle.Subscribe("Hit", function(self, impact_force, normal_impulse, impact_location, velocity, other_actor)
    -- il tuo codice
end)

Argomenti

Nome Tipo Predefinito Descrizione
self Vehicle — —
impact_force integer — The intensity of the Hit normalized by the Vehicle's weight
normal_impulse Vector — The impulse direction it hits
impact_location Vector — The world 3D location of the impact
velocity Vector — The Vehicle velocity at the moment it hits
other_actor facoltativo Actor? — The other actor that hit this Vehicle