Changing an NPCs CarryWeight

Post » Thu Jun 21, 2012 6:00 am

Is there anyway to change an Actor's non-skill related actor values in the CK? I'm trying to make a container with limited carry weight by using a dummy NPC, but am unable to modify its CarryWeight actor value through script.

Script that doesn't work:
Scriptname csdMinionInventoryInitScript extends Quest ObjectReference property csdInventorySlave autoEvent OnInit()Utility.Wait(5.0)csdInventorySlave.MoveTo(Game.GetPlayer(), 0.0, 50.0, 0)String CarryWeight(csdInventorySlave as Actor).SetAV(CarryWeight, 60)EndEvent 
User avatar
SHAWNNA-KAY
 
Posts: 3444
Joined: Mon Dec 18, 2006 1:22 pm

Post » Thu Jun 21, 2012 2:22 am

Shouldn't it be:

(csdInventorySlave as Actor).SetAV("CarryWeight", 60)

?
User avatar
James Wilson
 
Posts: 3457
Joined: Mon Nov 12, 2007 12:51 pm

Post » Thu Jun 21, 2012 6:29 am

bahaha I just had to slap myself for forgetting quotation marks

thank you kind sir
User avatar
Richard
 
Posts: 3371
Joined: Sat Oct 13, 2007 2:50 pm

Post » Thu Jun 21, 2012 3:12 pm

Not sure if this affects you or not but keep in mind that GetActorValue("InventoryWeight") will not work for NPC.
User avatar
Eoh
 
Posts: 3378
Joined: Sun Mar 18, 2007 6:03 pm

Post » Thu Jun 21, 2012 1:55 pm

thanks for the heads up

I don't need to know how much they're carrying, I just didn't want them to be able to carry everything in creation, which was a side effect of using a random container instead of an NPC
User avatar
Kirsty Collins
 
Posts: 3441
Joined: Tue Sep 19, 2006 11:54 pm


Return to V - Skyrim