Hi there,
I am coding for an engine based on C that supports everything apart from arrays. Now what I want to do is this:
int Populate(int Amount, string TagArray[], float xLoc[], float yLoc[], float zLoc[], float Orient[])
{
int AutoInc = 0;
while(AutoInc < Amount)
{
int a = AutoInc;
CreateObject(OBJECT_TYPE_CREATURE, TagArray[AutoInc], Location(Vector(xLoc[AutoInc], yLoc[AutoInc], zLoc[AutoInc]), Orient[AutoInc]);
AssignCommand(TagArray[AutoInc],ActionRandomWalk());
AutoInc++;
}
return 0;
}
I found out after writing this that the engine doesn't support arrays. Is there any way that I can do this without arrays?
I did have a look at structs but couldn't get my head around using them like this.
Thanks in advance.
TB12