Jump to content

Help needed with crippling/disarming


dustgecko

Recommended Posts

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.

Link to comment
Share on other sites

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

 

ref rWeapon
begin ScriptEffectStart
 if IsWeaponOut
   set rWeapon to GetEquippedObject 5
   Drop rWeapon 1
 endif
end

 

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...