Probably no-one is ever gonna read this other than you Disturbing, so heres another one.
It randomly loops back to the first state, so that the decal turns on and off repeatedly.
it looks wicked for sparks, or group about 10 fire decals in a segment square, and these look great.
peace.
butters
I made sure it didn't waste processor space, so I introduced a field of view factor. Basically, you place the decals where you want them, and stretch a trigger zone over the entire area that they will be visible, you then give the trigger a "plrinzone.fpi" and activate the decals from the trigger , so that the decal is only active when the player is in the zone.
to anyone else downloading:
As far as I can tell from the forums, no has ever managed this before (just look at how many "decal appearing?" threads there are), therefore licence wise:
licence
This code is (as far as the forums go) the first of it's kind, and so although it can be used within any project, commercial or otherwise, a credit would be neccessary. This goes for all scripts derived from it, as the initial concept is mine.
Ha! might sound a bit anal, but I'm fed up of people editing one line in sensei and claiming its theirs.
[code];Triggers
:state=0,activated=1:state=1
:state=1:setalphafade=100
:state=1:rundecal=0,sound=audiobank\atmos\electricbuzzzz.wav,state=2
:state=1,random=5:state=2
:state=2:setalphafade=0
:state=2,random=40:state=1
:state=2,activated=0:state=0
;End of Script
[/code]
;Triggers
:state=0,activated=1:state=1
:state=1:setalphafade=100
:state=1:rundecal=0,sound=audiobank\atmos\electricbuzzzz.wav,state=2
:state=1,random=5:state=2
:state=2:setalphafade=0
:state=2,random=40:state=1
:state=2,activated=0:state=0
;End of Script[/code]