Do lists start at 0 or 1?
E.g. Is the first object in "$Objects" at "$Objects.{0}" or at "$Objects.{1}"?
Group counters start from 0 or 1?
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 143
- Joined: Thu, 1. Aug 13, 05:59
Re: Group counters start from 0 or 1?
Index is 1-based for all list-based datatypes in X4, I believe. Index of 0 is used as a return value when trying to look up the index of an element that does not exist in a given list.