Author Topic: Defense mod  (Read 1370 times)

Perhaps not a mod but, a weapon itself or a weapon pack.

I think it should be a mod because then it would aply to all melee weapons not only a few.

but melee weapon s such a broad category, that it would be impossible for one mod to cover all melee weapons.  it would have t be a weapon pack.

but melee weapon s such a broad category, that it would be impossible for one mod to cover all melee weapons.  it would have t be a weapon pack.
Wrong
Code: [Select]
package meleeBlock
{
   function armor::onTrigger(%this, %obj, %slot, %val)
   {
      if(%slot == 4 && %val && %obj.getMountedImage(0).melee)
      {
         //Do stuff.
      }
      parent::onTrigger(%this, %obj, %slot, %val);
   }
};
activatePackage(meleeBlock);

oshat i do believe ive been disproven :/

Well I've started to make this now.

Code: [Select]
package meleeBlock
{
   function armor::onTrigger(%this, %obj, %slot, %val)
   {
      if(%slot == 4 && %val && %obj.getMountedImage(0).melee)
      {
         //Do stuff.
      }
      parent::onTrigger(%this, %obj, %slot, %val);
   }
};
activatePackage(meleeBlock);
I love you. :3

Amade thanks! You win!  :cookieMonster: