Announcement

Collapse
No announcement yet.

Raycast with Animations

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Raycast with Animations

    Hey guys, So I found this article about Raycast systems and I would love to implement this system into my game for Targetting, Enemy Line of Sight and also melee fighting. However, I was hoping that you could point me in the right direction for adding animation based on the event of the ray cast. For Example: Play walks in front of Enemy, enemy spots the player, the enemy chases the player, when close enough the enemy attacks the player. There are obviously three animations I want to add. 1. Detection Animation. 2. Run Animation. 3. Attack Animation.

    Now I setup a simple system that works when attached to a player. System includes: Player spawn. Player look at target. Target prints on screen. This will be a good system for line of sight. I will setup the rest. I was just wondering what I should be adding in the first place for animation triggers. Thanks in advance!
Working...
X