MOBA Character - Skillshot

Hi! I’m currently creating a simple MOBA character with some different spells.

I managed to program a targeted spell, an aoe… but I have a little problem with the skillshot.

I would like to be able, when activating the spell, to have a “line” that is drawn between my character and my cursor, with a defined length.

The goal would be to do exactly like Brand’s Q on League of Legends for example.

But impossible to find any information on the internet, everything relates only to the “draw line” debug, which is not what I want to do.

(For the aoe, I used a decal that fallows the cursor with an Event Tick. I tried the same thing for my skillshot, but there is no option in the Decal node that allows me to attach it to the character.)

Thanks for your help!

Example of something similar:

How you want to handle the visual aspect is up to you.

there is no option in the Decal node that allows me to attach it to the character.)

You can attach decals in two ways:

image

Thanks a lot, it works fine for me :slight_smile:

Here is what it looks like. :smiley:

I attached a PaperSprite (with the arrow sprite) to my decal and the it’s decal that follows my cursor. :smiley:

1 Like