05.07.2012, 03:13
The general reason I and others put arrays and enums etc. above callbacks is because (obviously) the callbacks can't use them if they're declared after them. Most of them get used in OnGameModeInit so it wouldn't make sense to have them at the bottom of the script.
For example my weapon pickup array - it needs to be above OnGameModeInit because they get created there.
I do agree splitting up systems is important - I'm just not totally sure how to do it. I'm sort of put off by the fact of having a million files when I could just have one.
Also, say you scripted something 2 years ago and it's in some file in some directory in some other directory - if the compiler gives an error it's going to say the error is in your GM, not which file. How are you meant to remember what file the script is in?
I should also point out I'm co-developing this with another person - which makes it even harder to organize stuff.
I am definately going to split many systems and include them, for example the housing system, ammunation, bank robberies and stuff like that.
For example my weapon pickup array - it needs to be above OnGameModeInit because they get created there.
I do agree splitting up systems is important - I'm just not totally sure how to do it. I'm sort of put off by the fact of having a million files when I could just have one.
Also, say you scripted something 2 years ago and it's in some file in some directory in some other directory - if the compiler gives an error it's going to say the error is in your GM, not which file. How are you meant to remember what file the script is in?
I should also point out I'm co-developing this with another person - which makes it even harder to organize stuff.
I am definately going to split many systems and include them, for example the housing system, ammunation, bank robberies and stuff like that.