Jump to content

Check if object is grenade in papyrus


Recommended Posts

Hi all,

 

is there a reliable way to check if an object reference or form is a grenade or mine? I tried using keywords but these are generally different for each grenade/mine. All mines seem to have the keyword 'WeaponTypeThrown'. But not all grenades have the keyword 'WeaponTypeGrenade', in fact only a few seem to have that. Elemental grenades like plasma or EMP have their own keyword (e.g. 'WeaponTypePlasmaGrenade') but I wouldn't want to check each and every one of those specialized keywords. And I would also like to avoid altering vanilla forms by adding new keywords.

 

All grenades and mines seem to have the keyword 'WeaponTypeExplosive' but then again, the rocket launcher for instance has the same...

 

So is there another way?

Edited by Ayelius
Link to comment
Share on other sites

  • Recently Browsing   0 members

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