lockall( set )
Parameters
| Type | Description | |
| set | boolean | enable or disable rotation locking |
_result
Not set.
Descriptions
Enables or disables rotation locking depending upon the value of the set parameter. If set evaluates to a true value, a robot's body, gun, and radar are locked to rotate together. When lockall is enabled all left and right rotation commands all have the same affect on a robot. For example, radarleft, gunleft, and bodyleft will all cause the same rotation. All of a robot's components rotate together at a rate of 5 degrees per turn. This is the rotation rate of the body, the slowest locked component.
If set evaluates to a false value, rotation locking is disabled and a robot's components rotate independently.
See Also