playMaker

Author Topic: UFPS: How to get enemy AI to take damage when they are being shot  (Read 4058 times)

PunkMunkey

  • Playmaker Newbie
  • *
  • Posts: 5
The title pretty much says it all. I'm using UFPS for the first person, and I designed my own simple AI using PlayMaker to control enemies and it works flawlessly except for one thing - I can't figure out how to deal damage on to the PlayMaker AI when I'm using UFPS. It think it's because UFPS uses raycast instead of actual projectiles, but that means that trigger/collider events don't work.

How can I make PlayMaker detect UFPS bullets?

600

  • Moderator
  • Hero Member
  • *****
  • Posts: 715
    • Flashing Lights
Re: UFPS: How to get enemy AI to take damage when they are being shot
« Reply #1 on: November 17, 2014, 10:50:10 AM »
I use raycast too,
you pick a object in raycast, check if its an Enemy, if true Send him a global event like HitWithPistol or other. Then enemy fsm deals with the damage etc.