playMaker

Author Topic: Can I make a fsm that will kill the enemy without making it too big?  (Read 886 times)

THEIPHONE

  • Playmaker Newbie
  • *
  • Posts: 17
Hi I was think about a way to make a FPS gun system and I thought to myself a way I can do it by using raycast, compare tag, compare object, and then activating a damage fsm for the enemy I’m damaging. But then I thought and realized that mean I would have to make a state for every single enemy so it could enable there damage fsm. Which is not a problem for a game with little enemy but my project has over 200 and I feel like doing it that way would waste a lot of time and make the project not run as fast and smooth. So if anyone has a way to do this can you pls tell me

THEIPHONE

  • Playmaker Newbie
  • *
  • Posts: 17
Re: Can I make a fsm that will kill the enemy without making it too big?
« Reply #1 on: August 20, 2022, 02:16:42 AM »
I also want to say since I’m my last text I said “gun system” and then started talking about enemy damage so to put it simple. I made a gun and when it hits the enemy I want to make it so the bullet will detect the tag then compare the object then do damage to that object. But if I were to do that it would make the fsm big because I would have to make a separate state for each of enemy’s sides I could activate there damage fsm