AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   entity touched the sky ? (https://forums.alliedmods.net/showthread.php?t=273642)

waza123a 10-23-2015 17:08

entity touched the sky ?
 
How to check if entity touched the sky ?

Bugsy 10-23-2015 22:21

Re: entity touched the sky ?
 
Quote:

Originally Posted by waza123a (Post 2356028)
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];
peviEntity pev_origin fOrigin );
if ( 
engfuncEngFunc_PointContents fOrigin ) == CONTENTS_SKY )
{





All times are GMT -4. The time now is 22:17.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.