hit an actor with touch if not too far
keekee312
Member Posts: 91
hi, i have an issue : i want the main actor to throw its tongue on an other actor (ennemy) when the player touch the ennemy to destroy it only if the ennemy is not too far away but i don't manage to do it. To make the ennemy destroy when touched is ok but i don't know how to make the rest.
Thanks
Thanks
Comments
If the entire tongue can collide and do damage, the invisible actor could be the tongue and just change the image when the button is pressed.
If you just want the tip to have a collision check, put the invisible actor at where the tip will go. If you don't want a hit scan effect, you may need to incorporate a timer to account for the time it takes for the tongue to reach the target.
where Jweaver911 wanted the same thing as I'm looking for. I just managed to spawn an actor from the character to the point I click (like an ammo) but I don't manage to make a real tongue which spits out from the character to where I click.
I tried many things but I miss something else.
Thank you very much for help. My game is pretty much done so I'm waiting for your answer(s)