Jump to content

"Animated" object in Fallout 4


Recommended Posts

Hi everybody!

 

I created a holoplayer (for Videos of the Wasteland) and when I insert one (or more) holotape(s), I would like that a holotape is placed and visible in the holoplayer slot (like a ps2 memory card for instance). And when i remove the holotape, it disappear. But I don't know how to do that (i think it's a script?)

 

Is there anybody who can help me?

 

thanks

Link to comment
Share on other sites

Get a model for the holotape player with both the holotape in and out. Make the holotape destrucatable. Add three stages. One at 100% Health and one at %50 and another at 25%. On the 3rd stage make the replacement model be the one with the holotape in it. I assume you have a script attached to an activator. So add this to it.

Scriptname MyScript Extends ObjectReference

Event OnDestructionStateChanged(int aiOldStage, int AiCurrentStage)
If CurrentStage == 2
Self.ClearDestruction()
EndIf
EndEvent

What this means is that the player can not "destroy" the holotape player.

 

 

Then in where the actual activation is make it when you put in the holotape do

HolotapePlayer.DamageObject(100.0)

And when you take it out.

HolotapePlayer.ClearDestruction()

If you aren't using an activator then this might work because onactivate is an objectreference script funtion.

Edited by texashokies
Link to comment
Share on other sites

  • Recently Browsing   0 members

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