So I'm reading the walkthrough and trying to wrap my head around how to write AngelScript code, and it's a bit overwhelming. Could I get some laymen's tips on basic syntax and code structure so I can figure it out, get a good grasp on it? For instance, I'd like to generate an AngelScript using this zero gravity snippet Violet provided...
Quote:
Originally Posted by Violet CLM
Code:
array<float> ZeroGravityVerticalPosition(jjLocalPlayerCount, -1);
void onFunction0(jjPLAYER@ play, bool enableZeroGravity) {
ZeroGravityVerticalPosition[play.localPlayerID] = enableZeroGravity ? play.yPos : -1;
}
void onPlayer(jjPLAYER@ play) {
if (ZeroGravityVerticalPosition[play.localPlayerID] != -1) {
play.yPos = ZeroGravityVerticalPosition[play.localPlayerID];
play.ySpeed = 0;
}
}
|
...but because I don't understand the syntax, I don't know how to properly put it into an AngelScript. I'm no good with coding and such so this isn't coming very easily to me.
Thanks!
|