View Single Post
Pelipoika
Veteran Member
Join Date: May 2012
Location: Inside
Old 10-08-2019 , 18:47   Re: Test for a Hit with the Skybox?
Reply With Quote #2

Code:
	public bool IsOutside()
	{
		TR_TraceRayFilter(GetAbsOrigin(this.index), view_as<float>( { -90.0, -90.0, -90.0 } ), MASK_SOLID, RayType_Infinite, FilterBaseActorsAndData, this.index);
		
		return !!(TR_GetSurfaceFlags() & SURF_SKY);
	}
__________________
Pelipoika is offline