Jump to content

Depleted ore veins


VMorticia

Recommended Posts

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:

 

  1. Put an activator over the static that you want the player to mine.
  2. Put the appropriate idle marker down against the wall.
  3. 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 by Anikma
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...