Copy an actor (levelled) exactly

Post » Tue Jul 16, 2013 8:30 am

Hey guys, I'm trying to generate a copy of a levelled actor via script. The object in-game is a LvlHunter. This Levelled Actor is based off of LCharHunter. LCharHunter is made up of all the different hunters, i.e. EncHunterImperialM, EncHunterRedguardM. Those NPCs have an actorbase EncHunter00Template.... this is where my problem lies I think.

The game generates a random actor from the placed Levelled Actor. I need to make an exact copy of that actor. Using GetLevelledActorBase() seems to return the template actor, because if the game makes a Nord Female hunter, the copied actor could be a Redguard female.

Has anyone been successful in achieving this? This is my little test script:

Event OnActivate(Objectreference akActionRef)	ObjectReference kActorOb = Self	Actor kActor = kActorOb as Actor		Actorbase kLBase = kActor.GetLeveledActorBase() as Actorbase		Debug.Messagebox("Levelled base = " + kLBase)	Actor newActor = Game.GetPlayer().PlaceAtMe(kLBase) as ActorEndEvent
User avatar
Ells
 
Posts: 3430
Joined: Thu Aug 10, 2006 9:03 pm

Post » Tue Jul 16, 2013 12:05 pm

i think you want PlaceActorAtMe.

User avatar
mike
 
Posts: 3432
Joined: Fri Jul 27, 2007 6:51 pm

Post » Tue Jul 16, 2013 11:32 am

Same result mate.

User avatar
josh evans
 
Posts: 3471
Joined: Mon Jun 04, 2007 1:37 am

Post » Tue Jul 16, 2013 1:29 pm

sorry man, guess i didn't read your request thoroughly enough - no clue then :-|

User avatar
Pixie
 
Posts: 3430
Joined: Sat Oct 07, 2006 4:50 am


Return to V - Skyrim