AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   point contents mistakes (https://forums.alliedmods.net/showthread.php?t=84703)

steve139 01-30-2009 14:29

point contents mistakes
 
Hello people,

I would like to check if a point is in nothing

so
PHP Code:

//new Float:my_point[3]
if(PointContents(my_point) == CONTENTS_EMPTY

but if the point is in water or a trigger map entity
it returns false


so
PHP Code:

if(PointContents(my_point) != CONTENTS_SOLID

but this return true when the point is in player or in door or pushable thing ....

I just want to know if the point is in the worldspawn/entity(like door, pushable thing, water, or in the map (in water)

so what I should use ?


Thanks for reading


All times are GMT -4. The time now is 01:42.

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