_cldmissile
Value Type
| boolean |
Description
Set to true when a robot collides with an energy missile. This variable triggers the section registered by the regcldmissile command to handle missile collision events. Collision indicators are mutually exclusive. When _cldmissile is true all other collision variables will be false.
This variable is reset to false automatically when the missile collision event handler completes. The _cldmissile variable can also be manually reset with the clear command. If no section has been registered to handle missile collision events and the clear command is not used, _cldmissile will remain true until a collision with a different obstacle type occurs.
When a robot collides with a missile the collision variables _cldbearing, _cldenergy, _cldheading, _cldid, and _cldteamid contain additional information.
See Also
regcldmissile, clear, _cldbearing, _cldenergy, _cldheading, _cldid, _cldteamid