Is there a way to force the player or an NPC to

Post » Sun May 18, 2014 11:37 am

Not be able to remove an equipped weapon? Getting a character to hold a weapon or shield is easy business, but they just put (can) it away.

*edit*

Think I found it.

User avatar
Syaza Ramali
 
Posts: 3466
Joined: Wed Jan 24, 2007 10:46 am

Post » Sun May 18, 2014 6:01 am

Could you elaborate on what you found? People around here could be interested. Thanks.

User avatar
LittleMiss
 
Posts: 3412
Joined: Wed Nov 29, 2006 6:22 am

Post » Sun May 18, 2014 3:08 am

In the Actor.EquipItem() function there's three parameters you can set. The first is the item to equip. The other two are bools with a default value of "false", the first is called "abPreventRemoval" and the second is "abSilent". So the answer to your question should be:

actorRef.EquipItem(myItem, true)
- Hypno
User avatar
Catherine Harte
 
Posts: 3379
Joined: Sat Aug 26, 2006 12:58 pm

Post » Sun May 18, 2014 11:27 am

Yeah, this is what I used.

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


Return to V - Skyrim