equal
deleted
inserted
replaced
482 -- The tag of a ball defines its color. It will automatically chosen at random when created. |
482 -- The tag of a ball defines its color. It will automatically chosen at random when created. |
483 colorTag = GetTag(ball) |
483 colorTag = GetTag(ball) |
484 -- Now colorTag stores the tag of ball (in this case a number denoting its color) |
484 -- Now colorTag stores the tag of ball (in this case a number denoting its color) |
485 </code> |
485 </code> |
486 |
486 |
|
487 The meaning of tags are described in [GearTypes]. |
487 |
488 |
488 === <tt>!GetFollowGear()</tt> === |
489 === <tt>!GetFollowGear()</tt> === |
489 |
490 |
490 <blockquote>Returns the uid of the gear that is currently being followed. |
491 <blockquote>Returns the uid of the gear that is currently being followed. |
491 </blockquote> |
492 </blockquote> |
733 ball = AddGear(123, 456, gtBall, 0, 0, 0, 0) |
734 ball = AddGear(123, 456, gtBall, 0, 0, 0, 0) |
734 -- This sets the tag of the gear. For gtBall, the tag specified the color. “8” is the color white. |
735 -- This sets the tag of the gear. For gtBall, the tag specified the color. “8” is the color white. |
735 SetTag(ball, 8) -- |
736 SetTag(ball, 8) -- |
736 </code> |
737 </code> |
737 |
738 |
738 Extensive documentation on what the different tags for gear types mean is still pending. |
739 The meaning of tags are described in [GearTypes]. |
739 |
740 |
740 === <tt>!SetTimer(gearUid, timer)</tt> === |
741 === <tt>!SetTimer(gearUid, timer)</tt> === |
741 |
742 |
742 <blockquote>Sets the timer of the specified gear. Also see !GetTimer. |
743 <blockquote>Sets the timer of the specified gear. Also see !GetTimer. |
743 </blockquote> |
744 </blockquote> |