notitg-mirin
notitg-mirin copied to clipboard
Document How to construct a table of actors
A way to add to the end of a table instead of specifying a specific number?
For people who don't want to make actorpool tables using :GetChildren
, but want to copy paste actors directly instead of them all needing a different number in their name.
I'm not sure whar the syntax should be, but the options are probably these:
- Name="in mytable"
- Name="mytable[next]"
- Name="mytable[#]"
- Name="mytable[#mytable + 1]"
- Other
- None, but a doc page pointing to calling
:GetChildren
on an actorframe containing your pool
fwiw php's syntax look like this
$array[] = 'my thing';
I kind of like the PHP syntax in this case, but it makes things a little bit complicated to implement
I think it might be possible to do like array[#array + 1]
, which I think would be the most natural? I'm not sure
didn't happen in version 5
We (me and Xero) have discussed and don't want to add this into the template, but issue will be left open until docs have been modified to mention :getchildren()