Raised This Month: $ Target: $400
 0% 

Include error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
bibu
Veteran Member
Join Date: Sep 2010
Old 04-17-2011 , 17:03   Re: Include error
Reply With Quote #3

PHP Code:
        new Float:fRandom[3]
        new 
Float:fBelow[3]
        new 
Trace_Result
        
        
while(SsGetOrigin(fRandom))
        {
            
xs_vec_copy(fRandomfBelow)
            
fBelow[2] -= 100.0 // i believe the height of a player is 27, let me know if i'm mistaken
            
engfunc(EngFunc_TraceLinefRandomfBelowIGNORE_MONSTERS0Trace_Result)
            
            if(
get_tr2(Trace_ResultTR_pHit) == 0// want it so you spawn above a floor
            
{
                
set_pev(idpev_originfRandom)
                
                break
            }
        } 
bibu 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 19:46.


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