BuzzingMonkey Posted May 29, 2012 Share Posted May 29, 2012 (edited) Hi - can someone help me i started a mod to add a effectshader to all rocks that can be mined. It works inside (like in a mine) but not in the open world. I've attached the script to all of the activator base objects that start with mineore. Theres also a blank form list that they get added to when they have been mined to turn the effect off. thanks in advance scriptname OreGlow extends ObjectReference EffectShader property myEffect auto FormList Property MinedRocks Auto Function StartEffect() MyEffect.play(self)EndFunction Function StopEffect() MyEffect.stop(self)EndFunction bool Function HasBeenMinedReturn MinedRocks.HasForm(self) EndFunction bool Function HasNotBeenMinedReturn !MinedRocks.HasForm(self) EndFunction Event OnCellAttach()if HasNotBeenMined() StartEffect()endIfEndEvent Event OnDestructionStageChanged(int aiOldStage, int aiCurrentStage) StopEffect()MinedRocks.AddForm(self)EndEvent Event OnReset() MinedRocks.RemoveAddedForm(self) StartEffect()EndEvent Edited May 29, 2012 by BuzzingMonkey Link to comment Share on other sites More sharing options...
Recommended Posts