What’s the most efficient way to make a slow moving projectile that can hit multiple people, but only once each? Has to be able to hit NPC’s and players.
What I’ve tried so far:
My first thought was to make a data table then add people to it the first time they got hit. If they weren’t on the table, they’d be added and the effect would resolve. If they were it would ignore them. The issue there was lag. Adding a debounce created a window where sometimes people in the crowd wouldn’t get hit because the attack was repeatedly hitting the same person, seeing they were hit before, then not doing anything until the debounce wore off.
I’ve been told to try raycast+whitelist but I don’t see an efficient way to do that without repeatedly firing it off like a pulse grenade, which seems inefficient.