- Joined
- Mar 23, 2016
- Messages
- 159
- Reaction score
- 12
- First Language
- English
- Primarily Uses
So, I was looking at the script call list featured here:
I was wondering if there was a way to obtain every actor in the game?
I tried this (using common sense, since it isn't mentioned in the list) but the game crashes:
I was wondering if there was a way to obtain every actor in the game?
I tried this (using common sense, since it isn't mentioned in the list) but the game crashes:
Code:
for (var i = 0; i < $dataActors.length; i++) {
if (!!$dataActors[i]) {
if ($dataActors[i].name.length > 0) {
$gameParty.addActor($dataActors[i]);
}
}
}
