Arrays

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Arrays

Post by enric »

Once defined and filled and array, is there a way to delete an element?

Say
(pseudocode)
For i = 0 to 5
SetArray (i, i*i, myArray);
end for

So I've a 6 elements array (0,1,4,9,16,25)
I pick a random element say index 3 value 9, and once used this value, I want to remove that index, so the array will compact to 5 elements. ((0,1,4,16,25). Is there functions that I missed or… should I do it "by hand"?.
pipfromslitherine
Site Admin
Site Admin
Posts: 9923
Joined: Wed Mar 23, 2005 10:35 pm

Re: Arrays

Post by pipfromslitherine »

You'll need to do it by hand.

Cheers

Pip
follow me on Twitter here
Post Reply

Return to “Battle Academy 2: Modders Corner”