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