Creare Videogiochi - Game Developer
Stop musica decrescente - Versione stampabile

+- Creare Videogiochi - Game Developer (https://www.making-videogames.net/giochi)
+-- Forum: Fps Creator e GameGuru Italia (https://www.making-videogames.net/giochi/Forum-Fps-Creator-e-GameGuru-Italia)
+--- Forum: Script fpi e lua FPSC GameGuru (https://www.making-videogames.net/giochi/Forum-Script-fpi-e-lua-FPSC-GameGuru)
+--- Discussione: Stop musica decrescente (/thread-Stop-musica-decrescente)



Stop musica decrescente - Tax78 - 19-12-2010

Script da inserire in main del triggerzone, necessita passaggio player.:
Codice:
;Artificial Intelligence Script

;Header     By Tax

desc          = Stop musica decrescente

;Triggers

;volume 100
:state=0,plrwithinzone=1:state=1,musicvolume=100,timerstart

;volume 80
:state=1,timergreater=1000:state=2,musicvolume=80,timerstart

;volume 60
:state=2,timergreater=1000:state=3,musicvolume=60,timerstart

;volume 40
:state=3,timergreater=1000:state=4,musicvolume=40,timerstart

;volume 20
:state=4,timergreater=1000:state=5,musicvolume=20,timerstart

;volume 0
:state=5,timergreater=1000:state=6,music=0

;End of Script
Al passaggio del player. la musica cala gradualmente fino a 0

By Tax