Help with crippling/disarming

Post » Sat May 28, 2011 1:40 pm

Hi all,

For my first mod I've been building a grenade that is supposed to disarm NPCs by crippling both of their arms. However, while it does successfully cripple their arms (the notifications appear), affected NPCs fail to drop their equipped weapons. Crippling is achieved through a custom object effect that does 1000 damage to the left and right arms (similar to the dart gun).

Am I missing a setting somewhere or is there another way to do this? Through scripting perhaps? (haven't explored scripting yet)

Thanks in advance for any help you can give.
User avatar
Chrissie Pillinger
 
Posts: 3464
Joined: Fri Jun 16, 2006 3:26 am

Post » Sat May 28, 2011 10:11 am

Ok, after hours of messing around with scripting I've got disarming working perhaps 75% of the time with the following (FOSE) script:

ref rWeaponbegin ScriptEffectStart  if IsWeaponOut    set rWeapon to GetEquippedObject 5    Drop rWeapon 1  endifend


A few NPCs refuse to drop their weapons - I suspect this has to do them having a second weapon/picking one up. Will carry on testing/experimenting.
User avatar
Milad Hajipour
 
Posts: 3482
Joined: Tue May 29, 2007 3:01 am


Return to Fallout 3