-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
object.id and retobjectbyid() are undocumented #1183
Comments
You can get an object with known ID with |
The object::id is not documented: http://colobot.info/SatComOnline/master/cbot/object |
That's a good catch. Object.id should definitely be listed there. |
I'm almost sure there was already a report of this being undocumented somewhere, how is that not fixed yet |
And @tomangelo2 it's |
There are a (smart) way to uniquely identify a object(like a bot, a enemy bot, a AntSpider, titanium cube, ...) using a string or a int? It's useful for inter-bot communication.
For example:
`
extern void object::run() {
object target = radar(Titanium);
string targetID = target.id;
}
`
The text was updated successfully, but these errors were encountered: