Jump to content

Script to remove player's weapon on hit with enemy?


Corpsehatch

Recommended Posts

I'm working on a small mod but am currently stumped on how to do one thing. Is there a way to have the weapon removed from the player's inventory when the enemy is hit? Not just disarmed, but completely removed. It's one of features of the mod so any help is appreciated.

Link to comment
Share on other sites

You could check into the following:

Dynamically attaching scripts to an enemy actor

Then on the script being applied to the enemy actor use the OnHit event to force the player's weapon to drop to the ground with the DropObject function. You will probably need to use GetEquippedWeapon function to ensure that you have the correct object drop from the player's inventory.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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