Event
Prop.Hit
Triggered when this Prop hits something
Syntax
Prop.Subscribe("Hit", function(self, impact_force, normal_impulse, impact_location, velocity, other_actor)
-- il tuo codice
end)
Arguments
| Name | Type | Default | Description |
|---|---|---|---|
self
|
Prop | — | The prop which has been hit |
impact_force
|
float | — | The intensity of the Hit normalized by the Prop's weight |
normal_impulse
|
Vector | — | The impulse direction it hits |
impact_location
|
Vector | — | The world 3D location of the impact |
velocity
|
Vector | — | The Prop velocity at the moment it hits |
other_actor
optional
|
Actor? | — | The other actor that hit this Prop |