edited May 2014 in ORK Support
What is needed for the Enable Drag to work? I am hoping it's possible to drag an attack or ability directly onto an enemy. When I do, nothing happens. However, I can drag the attack or ability onto the Enemy's GUI box from the turn order HUD.
Post edited by gamingislove on
  • Usually that should work - if it's not working, there is most likely something in the way that interferes with the raycast used to find a target for the drop.

    This can be a GUI box (non-combatant/turn order HUDs usually don't interfere with it), a trigger that's not on the Ignore Raycast layer or other game objects.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Thank you for the help. I have tried it in the ORK DEMO project but still cannot get it to work. Do the enemy combatants need a special component or collider?
  • It's working for me. As long as the combatant's prefab has a collider or character controller (to be able to get hit by the raycast) and isn't set to the Ignore Raycast layer, and nothing is in the way, a drop should be received.

    Of course, dropping stuff on them will also take into account if the attack, ability or item can be used (e.g. use costs, range, etc.).
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited May 2014
    Hmm. Your right it does work but not consistently for me. I have attached a few screenshots of the simple battle arena scene included with the demo. Depending on the position of the camera and the radius of the character controller, it either works or does not work. https://dl.dropboxusercontent.com/u/12844541/1.jpg
    https://dl.dropboxusercontent.com/u/12844541/2.jpg
    https://dl.dropboxusercontent.com/u/12844541/3.jpg
    Post edited by Brianjkd on
  • That's strange ... I'll do some testing :)
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Nevermind, sorry you are completely right it does work. I did not realize that the battle1 object was a sphere collider not set to Ignore Raycast.
  • Ok, good to know :)
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.