Array+=
Topic · Markdown · JSON · original wiki page
Arma 3 v0.50 same-file support
Arma 3 v1.00 full support
The array[] += {} syntax allows to add items to an existing array inherited from the direct parent.
Important
- This syntax has limitations in inheritance - see Limitations.
- This syntax should not be used in Description.ext - only in modded config.cpp.
Usage
class A
{
array[] = { any, thing };
};
class B : A
{
array += { more, Bstuff };
};
class C : A // inherits from A, -not- B
{
array += { other, Cstuff };
};
Limitations
Only direct inheritance of an explicitly-stated array works. The following cases do not work:
|
|