- Home /
character area attack problem
I want to ask about how can I script this situation in javascript. I know to script detect in front of my character, but it just very small area. I want to increase the angle in front of character so that my character can attack in area. Can anyone help me...I stopped here for a long time and dun know how to do.
Answer by ShadowBroker · Apr 11, 2011 at 11:15 AM
Why not using a trigger that checks of somebody is in there and than attack him if the attack-button is pressed?
because I dun want the character can pass though the enemy...can any good idea can do that?
But you can use a normal collider for the character, and another collider, used as a trigger on the same object. But I would create an empty child object for your charakter and add the trigger there because you can control it better that way.
Your answer
Follow this Question
Related Questions
Logic behind multiplayer melee attacks? 0 Answers
Melee attack comblat 1 Answer
Brawl style melee combat? 0 Answers
Melee combat, sphereoverlap not working 1 Answer
Random attack animation 1 Answer