Raised This Month: $ Target: $400
 0% 

Finding near origins


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 10-22-2009 , 09:04   Re: Finding near origins
Reply With Quote #3

If you don't want to spawn a solid entity or something similiar:
PHP Code:
stock get_near_origin( const origin], distance )
{
     
origin] += random_num( -distancedistance );
     
origin] += random_num( -distancedistance );
     
origin] += random_num( -distancedistance );
     return 
origin;

SnoW is offline
Send a message via MSN to SnoW
 



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 17:34.


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