ClickWithRaycast
Jump to navigation
Jump to search
Client-Side Event
C# Syntax
public delegate void OnClickWithRaycastDelegate(int x, int y, bool up, bool right, float relativeX, float relativeY, Vector3 worldPos, int entityHandle);Parameters
- x - expects System.Int32
- y - expects System.Int32
- up - expects System.Boolean
- right - expects System.Boolean
- relativeX - expects System.Single
- relativeY - expects System.Single
- worldPos - the position in the world, expects RAGE.Vector3
- entityHandle - the handle of the entity, expects System.Int32
Example
The example below does nothing on invoke of event
Events.OnClickWithRaycast += OnClickWithRaycast;public void OnClickWithRaycast(int x, int y, bool up, bool right, float relativeX, float relativeY, RAGE.Vector3 worldPos, int entityHandle)
{
//add something beast here
}