Skip to content

object.id and retobjectbyid() are undocumented #1183

@amreo

Description

@amreo

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;

//from somewhere else
object titanium = getObjectByID(targetID);
//Now 'titanium' should be equal to 'target'

}
`

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions