AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Using file to define positions (https://forums.alliedmods.net/showthread.php?t=216452)

Kia 05-21-2013 10:45

Using file to define positions
 
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).

Arkshine 05-21-2013 12:29

Re: Using file to define positions
 
Seriously, each time you ask something and you don't even try. That's not the purpose of this section. Also, there are several plugins you can look, like CSDM, Runemod, etc. Really how can you release plugins when you're asking thing that basic (reading a file and when there are already tutorials) ? Please stop that.

Kia 05-21-2013 12:33

Re: Using file to define positions
 
Quote:

Really how can you release plugins when you're asking thing that basic (reading a file and when there are already tutorials)
I never used such functions, thats why I ask.

Quote:

Seriously, each time you ask something and you don't even try.
I tried GHW's Spawnlist Generator, this one and this one, but I failed with all of them.

Arkshine 05-21-2013 12:38

Re: Using file to define positions
 
Quote:

I never used such functions, thats why I ask.
Then read the fucking available tutorial.

Quote:

I tried GHW's Spawnlist Generator, this one and this one, but I failed with all of them.
Then post here explaining what you have done, showing code, what it fails, what you tried, etc.

EpicMonkey 05-21-2013 12:57

Re: Using file to define positions
 
Quote:

Originally Posted by Arkshine (Post 1955780)
Then read the fucking available tutorial.

x2

amazing :3

Kia 05-21-2013 13:23

Re: Using file to define positions
 
Quote:

Originally Posted by Arkshine (Post 1955780)
Then read the fucking available tutorial.

I'd like to, but this tutorial
returns me "Internal Server Error" when I try to open it.

Arkshine 05-21-2013 13:30

Re: Using file to define positions
 
No idea what you're talking about. The link works fine.

Kia 05-21-2013 13:33

Re: Using file to define positions
 
I don't know, I can't open the links on AlliedMods sometimes, it keeps loading and loading and says me "Internal Server Error",

jimaway 05-21-2013 14:35

Re: Using file to define positions
 
Quote:

Originally Posted by Kia (Post 1955808)
I don't know, I can't open the links on AlliedMods sometimes, it keeps loading and loading and says me "Internal Server Error",

well find the page on google and view the cached version there? :)

.Dare Devil. 05-21-2013 14:43

Re: Using file to define positions
 
Quote:

Originally Posted by Kia (Post 1955808)
I don't know, I can't open the links on AlliedMods sometimes, it keeps loading and loading and says me "Internal Server Error",

I think that this is just a stupid reason and youre waiting that someone will make the code for you.


All times are GMT -4. The time now is 16:27.

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