Page 1 of 1

What is the difference between "ID" and "Id"

Posted: Sat Jun 24, 2017 5:07 am
by jamisco
There are methods that allow you to get single or multiple objects by their ID

Code: Select all

IObject Gunner_ID = Game.GetSingleObjectByCustomID("The_Gunner");
//or
IObject Gunner_ID = Game.GetSingleObjectByCustomId("The_Gunner");

IObject Gunner_ID = Game.GetObjectsByCustomID("The_Gunner");
//or 
IObject Gunner_ID = Game.GetObjectsByCustomId("The_Gunner");
as you notice there are 2 "id's" ... ID and Id ... what is the difference if I were to use the method with this "Id" instead of this "ID"\

Additionally this applies for every method, property etc that uses the term id. For example there is "UniqueId" and "UniqueID"

Re: What is the difference between "ID" and "Id"

Posted: Sat Jun 24, 2017 12:33 pm
by KliPeH
Aren't these just aliases for the same function? "You can write it this way or this way", considering programming is case-sensitive?

Re: What is the difference between "ID" and "Id"

Posted: Sat Jun 24, 2017 1:28 pm
by Gurt
No difference. ID with upper case is the supported names - the "Id" ones are from earlier versions and kept for backwards compatibility.

Re: What is the difference between "ID" and "Id"

Posted: Wed Aug 16, 2017 1:02 pm
by Motto73
Oh nice, I have been testing this earlier. I was about to ask on forums but forgot it.

Re: What is the difference between "ID" and "Id"

Posted: Wed Aug 16, 2017 9:59 pm
by KliPeH
Motto73 wrote:
Wed Aug 16, 2017 1:02 pm
Oh nice, I have been testing this earlier. I was about to ask on forums but forgot it.
I'm glad this two-month old thread helped you with your issue.

Solved, locked.