The declration of it works fine, however I ran into a strange issue.
Code: Select all
version "3.3"
Class MyDoomPlayer : DoomPlayer
{
Array<double> MyArray[MAXPLAYERS];
override void Tick()
{
int playerNum = PlayerNumber();
For (int i = 0; i < MyArray.Size(); i++)
{
MyArray[playerNum][i] = 2;
}
MyArray[playerNum].Push(4);
Super.Tick();
}
}
Code: Select all
Script error, "InvalidResizableArray.pk3:zscript.txt" line 12:
Invalid resizable array
Code: Select all
MyArray[playerNum][i] = 2;