SetActorOwner chnage the referance and not the base object?

Post » Thu Jun 21, 2012 3:12 pm

SetWeight will change the base object

SetGoldValue will change the base object ...right?

but will SetActorOwner chnage the ref and not the base object?
User avatar
Trista Jim
 
Posts: 3308
Joined: Sat Aug 25, 2007 10:39 pm

Post » Thu Jun 21, 2012 8:57 am

setactorowner will affect that reference only, but uses a base actor to apply ownership to

example:

someBed.SetActorOwner(MyNPCBase)


the reference someBed will be owned by MyNPC, and only the specified reference someBed, not all beds of that type.
User avatar
Janine Rose
 
Posts: 3428
Joined: Wed Feb 14, 2007 6:59 pm

Post » Thu Jun 21, 2012 11:48 am

Ah good! Thank you very much Amethyst Deceiver. I assume health % is the same for objects like swords that can hold that data.

err... but can that be changed? I need to go look at SKSE and see if that functional is available yet...



setactorowner will affect that reference only, but uses a base actor to apply ownership to

example:

someBed.SetActorOwner(MyNPCBase)


the reference someBed will be owned by MyNPC, and only the specified reference someBed, not all beds of that type.
User avatar
Ana
 
Posts: 3445
Joined: Sat Jul 01, 2006 4:29 am


Return to V - Skyrim