How to make a attack exclusive to one character?

  1. What do you want to achieve? Making an attack system for an infection game exclusive to certain characters. Ex, you unlock a grab-and-swipe attack upon being infected into a certain creature, but this is not visible if you’re still human.

  2. What is the issue? I have been unable to find any guides or tutorials regarding making attacks specific to a char., and this is a major part of the plan for the game, thus why I am asking for help! To clarify, I know how to assign stuff for team-only, but I am trying to assign this to specific characters instead of something across the whole team. I hope this is enough information! I can clarify if needed.

  3. What solutions have you thought of so far?
    Originally I considered, as mentioned above, making it team-only, but this would likely cause a bigger problem if I wanted to make specific and different attacks in addition, which just complicates things.

Added details: The attack system is selecting an “item” in the inventory which plays out an attack when you click the screen, and I am trying to figure out how to make this appear when becoming infected/becoming another char. I hope this goes far enough into detail, if not, I am free to elaborate or give further examples!

1 Like

You would make an if statement that fires when you attack.
Then if a certain value is equal to whatever it gives you that attack.

Thats the basic way to do it

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.