Skip to content

Scripts.Flashlight

Wesley Haws edited this page Jan 1, 2017 · 2 revisions

##Scripts - Flashlight

###What does this do?


Turns a light source on and off based on player input. Also plays sounds when player input is pressed.

###Who/What is this for?


The player object only.

###Setup


Example Setup:

Example Setup

Parameter Type Description
Override Audio Source AudioSource Audio source to play sounds from. If not provided the first one it finds.
Flashlight On Sound AudioClip AudioClip to play when light source turns on.
Flashlight Off Sound AudioClip AudioClip to play when light source turns off.
Clone this wiki locally