lockgun( 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 gun and radar are locked to rotate together. When lockgun is enabled, gun and radar rotation commands have the same affect on a robot. For example, radarleft and gunleft will cause the same rotation. A robot's gun and radar rotate together at a rate of 10 degrees per turn. This is the rotation rate of the gun, the slowest locked component. 

If set evaluates to a false value, rotation locking is disabled and a robot's gun and radar rotate independently.

See Also

lockall, robot attributes