func_clock
This object lets you implement the hour, minute or sweep hand in a clock. By using three such objects at once you can make a fully functional clock face.
Spawnflags
SF_DOOR_ROTATE_Z |
64 (rotation about the Z axis, similarly to func_door_rotating) |
SF_DOOR_ROTATE_X |
64 (rotation about the X axis, similarly to func_door_rotating) |
Options
type |
Hand type:
|
curtime |
Applies only to the hour hand. Format: XX XX XX (vector). Hours (0–12), minutes (0–59), seconds (0–59). The hour hand sets the time for the minute and sweep hands automatically after it finds them within the radius that equals its length. |
event |
Target for activation. Applies only the hour hand. When the hour changes, two activations are done: first the number of hours is communicated through USE_SET, and then the target is activated through USE_ON. This behaviour is handled well by the generator entity, and you can use it to strike the correct number every hour. If you specify an ambient_generic as a target, then there will be one strike (sound) for every hour. |
Usage Details
- A clock cannot be activated or deactivated, its state is always ON.
- The hands are totally independent from one another, and are synchronised only once at map start if the current time is set for the hour hand.
- For correct operation all hands should be oriented to point at 12.00.00.
- Do not try to set the hour using angles. This will be ignored.