Skip to content
Nick Olenz edited this page Nov 6, 2020 · 1 revision

Target

Gamemode Minimum Instances Maximum Instances
Sandbox 0 (Optional) Unlimited
Take and Hold 0 (Optional) Unlimited

Description

Targets produce a sound and/or UnityEvent when shot.

Field Breakdown

  • clips: All sounds this target can play when shot. One will be chosen randomly from this list each time the target is shot.
  • volumeRange: Range of volume for clip, chosen from randomly each time the target is shot.
  • pitchRange: Range of pitch for clip, chosen from randomly each time the target is shot.
  • speedRange: Range of speed for clip, chosen from randomly each time the target is shot.
  • shotEvent: A Unity event, useful for triggering other functions.

Usage

Place this component on any GameObject you want to create a sound or event for when shot. No further setup required.