i am making some police lights, and need two things;
sound players
"horn"
lets start with the "horn"
i need to use a pushbutton as a "horn" to change the void loop that runs... basically i want have 2 void loops, one for normal police lights, and one for when the "horn" is on. how do i write two void loops, and make them play by the pushbutton?
ex:
void loop 1
hsadf ajsdv das
dsvasvdsa
void loop 2
fvadsvasdvaASv
dsvasdddvd
if the pishbutton is off, void loop one plays, and if it is on, void loop two plays