On Camera Raycast

HUD
Server Side
Both Mobile and PC
Owner:
Game entity

This event is triggered when the camera ray detection is triggered by a client click event

Declaration

event OnCameraRaycast(player entity<Player>, isHit bool, hitPosition Vector3, cameraDirection Vector3, cameraPosition Vector3, hitEntity entity<Entity>)
go

Parameters

Name Type Description
Player Player Trigger Player
Is Hit Bool Whether the camera ray hits the object
Hit Position Vector3 Camera ray hit position
Camera Direction Vector3 Client camera orientation
Camera Position Vector3 Client camera position
Hit Entity Entity Hitting an entity