Author Topic: Grenade vfx  (Read 320 times)

Legacy_Nebril2

  • Full Member
  • ***
  • Posts: 104
  • Karma: +0/-0
Grenade vfx
« on: March 03, 2015, 05:44:00 pm »


               

Hi all!!


 


 


I was wondering... theres a way to make a custom grenade like item with the grenade vfx thorw and then, on exploding, a custom script to trigger?


 


For example i want an item wich is a grenade which when exploding adding a tanlged effect to enemies.



               
               

               
            

Legacy_Terrorble

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
Grenade vfx
« Reply #1 on: March 04, 2015, 03:06:02 am »


               

You mean like a Tanglefoot Bag but it explodes and can entangle multiple targets?


 


I'm pretty sure you can make a copy of a Tanglefoot Bag in the palette and give it a unique TAG.


 


Then edit x0_s3_tangle to do something specific if the item used has the unique TAG, or do the regular Tanglefoot Bag if it isn't.


 


if( GetTag(GetSpellCastItem()) == "unique TAG" )
{
  //do this
}
else
{
  //do the regular tanglefoot bag stuff
}


               
               

               
            

Legacy_Nebril2

  • Full Member
  • ***
  • Posts: 104
  • Karma: +0/-0
Grenade vfx
« Reply #2 on: March 04, 2015, 10:30:40 pm »


               

Very clever!!


 


Worked just perfect, and i can add a lot more of grenade items now '<img'>


 


 


Thank you!