Solo and multiplayer
Action Battle works the same in standalone (RPG) and multiplayer (MMORPG) games. Factions and target selectors decide who fights whom.Factions and targets
BattleAi can target players, other battle events, every combat entity, hostile
factions, or an explicit list of factions.
players: target all players.events: target action-battle events.all: target players and action-battle events.hostile: target entities with a different faction.["guards", "bandits"]: target only these factions.(context) => boolean: fully custom target rule.
"hostile" as the selector to target every entity of another faction. For a
free-for-all, give each player its own faction:
Server authority and client presentation
Gameplay is decided on the server in both standalone and MMORPG games; the client only presents it.
See Recommended composable DX
and Enemy attack cadence for details.