AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to check if a origin is available or not? (https://forums.alliedmods.net/showthread.php?t=188098)

4554 06-22-2012 07:26

How to check if a origin is available or not?
 
How to check if a origin is available or not?
Thanks

Bugsy 06-22-2012 20:46

Re: How to check if a origin is available or not?
 
Try
PHP Code:

if ( engfuncEngFunc_PointContents fOrigin ) == CONTENTS_EMPTY )
{



Can also use these, for example, CONTENTS_SOLID means entity\player within a wall or outside of map boundaries.
Spoiler

4554 06-23-2012 07:13

Re: How to check if a origin is available or not?
 
thanks for help


All times are GMT -4. The time now is 06:11.

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