Jump to content

Making an NPC enter Power Armor /inc animation


TheCutSnake

Recommended Posts

I'm trying to get a recently spawned NPC to enter a set of Power Armor the player is standing near.

 

I can force the npc in via SwitchToPowerArmor, however the power armor actually teleports to the position of the actor, not the other way around as I expected.

 

I'd prefer to have the actor physically enter the power armor before initiating the greeting that I've got set up via scene.

 

I've tried using packages but nothing seems to work the way I want it to.

 

Any ideas?

 

Link to comment
Share on other sites

  • 2 weeks later...
Would you prefer the NPCs to already be in the PA? If so, then make your character a power armor race. Create a new power armor frame with the desired armor pieces to attach, and spawn them in that. Just a little hint: PA comes in two flavors, race and furniture. When unoccupied, it is a furniture. What a character (NPC or Player) enters the armor, they are promoted from their race (usually human) to PA race. Similarly, when exiting they are demoted back down to their original race. As for the NPC and the armor being separat, and animating the NPC to the armor to enter it, I’m not very well versed in FO4 scripting to tell you how to do it.
Link to comment
Share on other sites

DeathMotif, thanks for your input.

 

As it stands I've got the npc teleporting into the frame, then moving him to the frame's original location.

 

I'd rather have the animation of him entering, but since I've been working on other features for the mod I've learned a great deal and am sure I'll get it working eventually ;)

Link to comment
Share on other sites

  • 3 weeks later...

Finally got some free time to explain how I managed to script and actor to physically climb into a suit of power armor.

 

First thing was to add PowerArmorPerk to the npc.

 

I then created two QuestAlias's, leaving the data empty, other than selecting Optional and Reusable.

 

I then created an empty package, using PowerArmorSit as the template, and edited it so that the target was the first QuestAlias, making it a new package

 

I then added that package to the second QuestAlias.

 

The I used ForceRefTo to give the Power Armor Frame the first QuestAlias.

 

And the ForceRefTo to the npc for the second QuestAlias.

 

He then receives the package to activate the Power Armor Frame, and climbs into it as I wanted him to.

 

I hope I've given enough information here to help anybody else trying to do the same thing (I also hope it's accurate :wink:

 

If you have any questions, feel free to ask and I'll do my best to help.

Edited by Cut Snake
Link to comment
Share on other sites

  • Recently Browsing   0 members

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