OnObjectHit
From Onset Developer Wiki
Description
Called when something hits the object. Requires EnableObjectHitEvents to be called on the object before.
Syntax
OnObjectHit(object, hittype, hitid, hitX, hitY, hitZ, normalX, normalY, normalZ)
Parameters
- object
The object which was hit. - hittype
The type of entity which hit the object. - hitid
The identifier of the entity which hit the object. - hitX
The X coordinate of this hit. - hitY
The Y coordinate of this hit. - hitZ
The Z coordinate of this hit. - normalX
Impact normal X of the hit. - normalY
Impact normal Y of the hit. - normalZ
Impact normal Z of the hit.
Example
__EDIT_ME__
See also
Game
- OnGameTick
- OnGameLanguageChange
- OnSteamOverlayActivated
- OnResolutionChange
- OnRenderHUD
- OnShowMainMenu
- OnHideMainMenu
- OnWhitelistAccepted
Vehicle
- OnVehicleStreamIn
- OnVehicleStreamOut
- OnPlayerStartEnterVehicle
- OnPlayerStartExitVehicle
- OnPlayerEnterVehicle
- OnPlayerLeaveVehicle
- OnPlayerToggleVehicleLight
- OnPlayerToggleVehicleNitro
- OnPlayerToggleVehicleHorn
- OnVehicleBackfire
Player
- OnPlayWeaponHitEffects
- OnPlayerStreamIn
- OnPlayerStreamOut
- OnPlayerSwitchCamera
- OnPlayerEnterWater
- OnPlayerLeaveWater
- OnPlayerDeath
- OnPlayerChatCommand
- OnPlayerChat
- OnPlayerSpawn
- OnPlayerCrouch
- OnPlayerEndCrouch
- OnPlayerEndFall
- OnPlayerFall
- OnPlayerTalking
- OnPlayerToggleAim
- OnPlayerFootstep
Weapon
Parachuting
- OnPlayerParachuteLand
- OnPlayerSkydiveCrash
- OnPlayerCancelSkydive
- OnPlayerSkydive
- OnPlayerParachuteOpen
- OnPlayerParachuteClose
Key
NPC
Object
- OnObjectStreamIn
- OnObjectStreamOut
- OnObjectHit
- OnPlayerEndEditObject
- OnPlayerBeginEditObject
- OnObjectModelChange
Package
Pickup
Text
Vehicle
- OnVehicleStreamIn
- OnVehicleStreamOut
- OnPlayerStartEnterVehicle
- OnPlayerStartExitVehicle
- OnPlayerEnterVehicle
- OnPlayerLeaveVehicle
- OnPlayerToggleVehicleLight
- OnPlayerToggleVehicleNitro
- OnPlayerToggleVehicleHorn
- OnVehicleBackfire