Raised This Month: $ Target: $400
 0% 

entity touched the sky ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
waza123a
Member
Join Date: Mar 2010
Old 10-23-2015 , 17:08   entity touched the sky ?
Reply With Quote #1

How to check if entity touched the sky ?
__________________
Life is good, sometimes...
waza123a is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-23-2015 , 22:21   Re: entity touched the sky ?
Reply With Quote #2

Quote:
Originally Posted by waza123a View Post
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 )
{


__________________

Last edited by Bugsy; 10-23-2015 at 22:21.
Bugsy is online now
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:28.


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