VMorticia Posted June 18, 2015 Share Posted June 18, 2015 Is there a script to identify when an ore vein has been depleted? I want to make a vein deactivate (disappear completely) once depleted, trigger a rockfall trap, and open up a new cave area behind it. Link to comment Share on other sites More sharing options...
courtneyfrb Posted June 19, 2015 Share Posted June 19, 2015 (edited) double post Edited June 19, 2015 by courtneyfrb Link to comment Share on other sites More sharing options...
Anikma Posted June 20, 2015 Share Posted June 20, 2015 (edited) I'm imagining that this is a singular event and if so then there is no need to use the ore veins at all. I have a very similar event in one of my own quests where the player must use a pickaxe to mine their way out of a small room. The way I achieved this was by having an activator than ran a script that checked whether they had a pickaxe in their inventory, moved them to an idle marker (IdlePickaxeWall I THINK) which then caused them to play mining animation for a few seconds before fading the screen to black. Essentially the steps are as followed: Put an activator over the static that you want the player to mine. Put the appropriate idle marker down against the wall. Attach the script to the activator, make sure it's set to PlayerActivation in the primitive tab. The script should look something like this: Scriptname Example Extend Object Reference Actor Property PlayerREF Auto ObjectReference Property YourWallRef Auto ObjectReference Property YourIdleMarkerRef Auto Event OnActivate(ObjectReference akActionRef) if akActionRef == PlayerREF PlayerREF.Moveto(YourIdleMarkerRef) Utility.Wait(2.0) Game.FadeOutGame(true, true, 0.0, 2.0) Game.FadeOutGame(true, false, 2.0, 2.0) YourWallRef.Disable() YourIdleMarkerRef.Disable() Self.Disable() EndIf EndEvent I just wrote that completely off the top of my head, I didn't compile it and I don't know if it even works so don't copy it over, use it as a base or guide for your own. Primitives Tutorial: http://www.creationkit.com/Creating_Primitives AND Edited June 20, 2015 by Anikma Link to comment Share on other sites More sharing options...
Recommended Posts