Quote:
Originally Posted by waza123a
How to check if entity touched the sky ?
|
What exactly are you trying to do?
You could check the origin of the entity and see if it's in the sky. IIRC the transition from CONTENTS_EMPTY to CONTENTS_SKY varies by map.
PHP Code:
new Float:fOrigin[ 3 ];
pev( iEntity , pev_origin , fOrigin );
if ( engfunc( EngFunc_PointContents , fOrigin ) == CONTENTS_SKY )
{
}
__________________