Event
Vehicle.Hit
Triggered when Vehicle hits something
Syntax
Vehicle.Subscribe("Hit", function(self, impact_force, normal_impulse, impact_location, velocity, other_actor)
-- il tuo codice
end)
Arguments
| Name | Type | Default | Description |
|---|---|---|---|
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
optional
|
Actor? | — | The other actor that hit this Vehicle |