Opinion on multiplayer game with spell duelling
Hey guys. Just wanted to get some opinion from more skilled people regarding a game I'm trying to make. It's supposed to be a multiplayer action game and it has a feature where spell projectiles that collide initiates some sort of duel between the two involved players.
I can't seem to come up with a way on how to initiate the duel on collision. As it is multiplayer, multiple duels can happen at the same time. I was thinking maybe I would make another Actor blueprint which would have an event that will be called by the Projectile blueprint if it collides with another projectile. I think it'll work on single player but when more people are initiating duels at the same time that's where things start to fall apart.
Any help would be appreciated.
asked Dec 11 '14 at 09:09 PM in Blueprint Scripting
projectiles usually have an instigator reference when handling collision.
you can check if either of the instigators are already fighting by checking a bool bIsFighting.
on overlap, flag a bool in playerState for each of the instigators like bIsFighting = true.
if they are already fighting, ignore the overlap event.
handle these overlap events only on the server, by using a SwitchHasAuthority node.
Follow this question
Once you sign in you will be able to subscribe for any updates here