Hello all, just venturing into the forays of scripting again...
I was just wondering if anybody who is good with scripts could look at my script here and see if it would work correctly...
Basically what I have here is a script that will play a random sound, at a random time interval, with a random camera shake magnitude. I also put some plrwobble in it for overall realism.
The script is applied to a trigger zone way off the map.
I got the idea playing rage, every once in a while the camera shakes lightly and a sound (like metal creaking or earthquakes) would play.
(Replace X with sound files and associated paths)
Here is the script:
;Artificial Intelligence Script
;Header
desc = dynamic ambience
;Triggers
:state=0,plrwithinzone=0:plrwobble=1
:state=1,timerstart,state=10
:state=10,random=5,timergreater=25000,state=11
:state=10,random=10,timergreater=34000,state=11
:state=10,random=15,timergreater=15000,state=11
:state=10,random=20,timergreater=85000,state=11
:state=10,random=25,timergreater=120000,state=11
:state=10,random=30,timergreater=54600,state=11
:state=10,random=35,timergreater=180000,state=11
:state=10,random=40,timergreater=42000,state=11
:state=10,random=45,timergreater=6000,state=11
:state=10,random=45,timergreater=3000,state=11
:state=11,random=5,plrsound=X,state=12
:state=11,random=10,plrsound=X,state=12
:state=11,random=15,plrsound=X,state=12
:state=11,random=20,plrsound=X,state=12
:state=11,random=25,plrsound=X,state=12
:state=11,random=30,plrsound=X,state=12
:state=11,random=35,plrsound=X,state=12
:state=11,random=40,plrsound=X,state=12
:state=12,random=5,camshake=1,state=1
:state=12,random=10,camshake=3,state=1
:state=12,random=15,camshake=2,state=1
:state=12,random=20,camshake=4,state=1
:state=12,random=25,camshake=5,state=1
:state=12,random=30,camshake=3,state=1
:state=12,random=35,camshake=2,state=1
:state=12,random=40,camshake=1,state=1
[/href]
BACK FPSC:R! http://kck.st/Tmi93T