Generally speaking it’s probably not necessary to know an officer’s number because normally the code will already be looking at the four images, and be able to grab it from there. I just think it’s a potentially-useful technique.
I have to say that I’m not even using the function myself, I’ve looked at it a few times but ultimately never needed it. One thing I was looking at was making officers captive in order to hide them from the passenger list, which I’m no longer doing. While it still wasn’t necessary to know their slot number, at the same time using the“i” would have explicitly prevented the captain from being made captive - since the first slot is zero, it would have returned false (is the captain even a passenger anyway?). That’s the trouble with IsOfficer(), it will regard the captain as an officer, which may not be appropriate in some cases.
As I said, it’s maybe not as useful as I first thought when it comes to this particular function, but the idea is.
I have to say that I’m not even using the function myself, I’ve looked at it a few times but ultimately never needed it. One thing I was looking at was making officers captive in order to hide them from the passenger list, which I’m no longer doing. While it still wasn’t necessary to know their slot number, at the same time using the“i” would have explicitly prevented the captain from being made captive - since the first slot is zero, it would have returned false (is the captain even a passenger anyway?). That’s the trouble with IsOfficer(), it will regard the captain as an officer, which may not be appropriate in some cases.
As I said, it’s maybe not as useful as I first thought when it comes to this particular function, but the idea is.