Raised This Month: $ Target: $400
 0% 

Questions Find Entity in Sphere


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Whitez
Member
Join Date: Apr 2016
Location: London, UK
Old 05-16-2016 , 13:13   Questions Find Entity in Sphere
Reply With Quote #1

I have few questions about this function
PHP Code:
engfunc(EngFunc_FindEntityInSphere, -1originradius
How can i use it efficiently to detect if a wall is at an x or y distance from an origin ?
Will this following be efficient since:

1. it doesn't have a defined radius from the beginning, and it will check a very large area
2. it doesn't have a certain entity to search for so it will detect and others before checking for func_wall

PHP Code:
engfunc(EngFunc_FindEntityInSphere, -1originradius

if( 
entity class name func_wall
{
    
    if(
radius x)
    {
        do 
this
    
}
    else if(
radius y)
    {
        do 
this
    
}
    else
    {
        do 
that
    
}

Whitez is offline
 



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 18:44.


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