Jump to content

Cloning player


Yoghurt

Recommended Posts

Hi,

 

I am working on a mod where the player needs to be attacked by an exact copy of the player.

 

So far I have gotten a copy of the player to spawn like this:

 

 

MyActorBase = MyActor.GetBaseObject() as ActorBase
PlaceActorAtMe(MyActorBase)
For MyActor I use the player and the event is triggered by an OnTriggerEnter. However, I cannot think of any way to make this copy attack the player. It just moseys around.
Hope someone has any idea of solving this or has done a similar thing before.

 

Link to comment
Share on other sites

Just a thought...

 

Make an actor that is hostile to the player.

Go to the traits tab of the actor record

On the bottom left is a box called Template Data with a drop drown box called ActorBase

Go through the options and select the player entry

Check the box called Use Traits

 

It is what is done on the Mannequins Look Like You mod. However, there could be skin tone issues unless the player character happens to be using the default skin tone.

 

Then again, you might be able to apply AI data via quest alias to your spawned player copy. If you can figure that out it would be a better solution.

Link to comment
Share on other sites

I tried the Template Data trick and it went a little wacky. The face and inventory was copied. However, the body and voice was male even though my character is female. Also I need the copy to look exactly like the player does in that exact moment. If I drop all inventory the Template copy still spawns with the inventory on him.

 

Back to the drawing board I guess. Thanks for your help anyway! :)

Link to comment
Share on other sites

  • 3 weeks later...

I did it! It was too damn simple. I used the script I posted and then cast the spell "Frenzy" on Player which means that the clone was affected by Frenzy as well. Next thing I know I got fusrodah'd across the room into a wall. Magnificent :)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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