Jump to content

OnHit doesn't appear to work on biped models...


ashtonlp101

Recommended Posts

So I'm trying to design a gas tank that certain NPCs wear and I'm trying to script it so if the gas tank gets hit, it explodes and the gas tank is removed (Just like COD World at War). But the problem is, when I'm shooting the gas tank nothing happens. So I thought instead maybe I could run a script that checks the condition of the backpack and when it hits zero it kills the NPC in a firey explosion but I can't seem to find a variable that checks an item's condition. Anyone have any ideas, or should I just scrap this? Thanks.

 

Here is my very simple script for the gas tank backpack:

 

Begin OnHit

 

Removeitem GasTankBackpack 1

Placeatme GrenadeIncendiaryExplosion

Kill

 

END

Link to comment
Share on other sites

There is a GetWeaponHealthPercentage but it seems as though bethesda never added a GetArmorHealthPercentage :sad: My current candidate is GetEquippedCurrentHealth but it only runs on a REF...

Edited by ashtonlp101
Link to comment
Share on other sites

  • Recently Browsing   0 members

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