target_cdaudio

Modified

12-Jul-2023

Entity that, when triggered, play a music track chosen from predefined list of tracks.

Keyvalues


OnDestroy Function ondestroyfn : Name of the function to use from already parsed .as script files when entity is destroyed (killed) in any way. If the function belongs to namespace, you must use prefix with the namespace name (e.g. mynamespace::MyFunction) for the keyvalue.

Name targetname : Set name of target_cdaudio so other entities can trigger it to play audio track. Every trigger use-type works uniformly. Kill-targeting this entity will not stop audio from playing.

Track # health : Track to play. Pick 'Stop' to stop any currently playing track. Tracks are located in "media" folder, options starts from 'Track 2' (Half-Life0.mp3) and ends at 'Track 28' (Half-Life27.mp3). Tracks number 1, 29 and 30 are empty.

  • -1 : Stop
  • 1 : Track 1
  • 2 : Track 2
  • 3 : Track 3
  • 4 : Track 4
  • 5 : Track 5
  • 6 : Track 6
  • 7 : Track 7
  • 8 : Track 8
  • 9 : Track 9
  • 10 : Track 10
  • 11 : Track 11
  • 12 : Track 12
  • 13 : Track 13
  • 14 : Track 14
  • 15 : Track 15
  • 16 : Track 16
  • 17 : Track 17
  • 18 : Track 18
  • 19 : Track 19
  • 20 : Track 20
  • 21 : Track 21
  • 22 : Track 22
  • 23 : Track 23
  • 24 : Track 24
  • 25 : Track 25
  • 26 : Track 26
  • 27 : Track 27
  • 28 : Track 28
  • 29 : Track 29
  • 30 : Track 30