Hello guys, i created an ability and am trying to set the distance range and angle a target(enemy) needs to be, to be affected by the ability. I created a battle range template which i used on the 'Affect range setting' of the ability, but i noticed that there is no setting for the angle the target needs to be, before is affected. I want the target to be within a particular angle from the users line of sight for him to be affected.
But unfortunately ork doesn't have ability affect angles. I know there are so many experienced ork users here. Please i need an assistance on how to do this, even if it involves third party asset that can be integrated with ork. Like playmaker actons for ork by gamekkakak. Thank in advance
Without using affect range, you could probably do this in the battle event of the ability. Since the Calculate node has a setting to Use Other Targets, you can pretty much use any kind of method to find targets, like raycasting or searching within range (e.g. storing them in the Found Targets).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
So i added a box trigger(i added a box gameobject to the combatant player, removed the box mesh component, then set it as a trigger. Then uncheck the box, so that it is inactive by default ) to combatant, such that when the animations starts playing, the box is set to active using playmaker, then if a target is within the triggger or enters trigger,when the animation is playing, then damage is done. Then when the animation finishes playing, the trigger is set to inactive(to avoid doing damage when attack is not playing). The problem now is that i don't know if you use a tag to identify targets in your script, because i don't want to do damage to combatants that are my partners or group members when am performing attack. So please can you advice on how to filter my supposed target when performing attack, can i use tag to filter them? Finally, am pretty new to game development, i don't know if this approach will be expensive for mobile device, in terms of performance. Thanks in advance.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!