Okay, so I made a fighting system, but it currently only works on player vs player, cause I put all the variables (cooldowns, alot of booleans and more) inside the player . I want to add PvE in my game, so is there a way to make npc’s be inside the player list? Or should I rewrite my entire script and put all those variables inside a player’s character ? I’m not the best at explaining, so if you have a question PLEASE feel free to ask!
You can’t add the NPC’s to the player list afaik. However you don’t need to rewrite the entire script, you can simply add exceptions to get NPC stats from the character or wherever you store it rather than the player list.