Raised This Month: $ Target: $400
 0% 

Using file to define positions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-21-2013 , 10:45   Using file to define positions
Reply With Quote #1

Hello,

I tried to generate valid spawnpoints for entities using serveral methods, but each one often generates unreachable positions, so I have another idea now.
Does anyone know how to save positions (X,Y,Z in each line) and load randomly one of them when I create a sprite?
Something like iOrigin[0] = get_random_position("textfile",0).
__________________
Kia 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 16:20.


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