Aller au contenu

Photo

Grenade vfx


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Nebril2

Nebril2
  • Members
  • 59 messages

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.



#2
Terrorble

Terrorble
  • Members
  • 194 messages

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
}


#3
Nebril2

Nebril2
  • Members
  • 59 messages

Very clever!!

 

Worked just perfect, and i can add a lot more of grenade items now :)

 

 

Thank you!