scripts/4_World/Entities/ManBase/PlayerBase.c
//Get aim (player crosshair) position
Get aim (player crosshair) position
Get aim ( player crosshair ) position
vector GetAimPosition()
	{
		float min_distance = 0.5;		
		vector from = GetGame().GetCurrentCameraPosition();
		vector to = from + (GetGame().GetCurrentCameraDirection() * min_distance);
		vector contactPos;
		vector contactDir;
		int contactComponent;
		DayZPhysics.RaycastRV( from, to, contactPos, contactDir, contactComponent, NULL, NULL, NULL, false, true );
		return contactPos;
	}
vector GetAimPosition ( ) { float min_distance = 0.5 ; vector from = GetGame ( ) . GetCurrentCameraPosition ( ) ; vector to = from + ( GetGame ( ) . GetCurrentCameraDirection ( ) * min_distance ) ; vector contactPos ; vector contactDir ; int contactComponent ; DayZPhysics . RaycastRV ( from , to , contactPos , contactDir , contactComponent , NULL , NULL , NULL , false , true ) ; return contactPos ; }
Get aim (player crosshair) position
Get aim ( player crosshair ) position
//min distance, default = 5m