_cldteamid
Value Type
| numeric |
Description
When a robot collides with another object, the _cldteamid variable is set to the team id of the other object. Robots can collide with energy missiles, other robots, cookies, mines, and walls. When a robot collides with an object that is not a member of a team, _cldteamid is set to 0. When a robot collides with a missile, _cldteamid is set to the team id of the robot that fired the missile rather than the id of the missile itself. Since walls have no team ids, _cldteamid is set to -1 when a wall collision occurs.
See Also
_cldheading, _cldenergy, _cldbearing, _cldid, _cldrobot, _cldmissile, _cldcookie, _cldmine, _cldwall