Game Development Reference
In-Depth Information
Configuring team influences
Now that we have both a team area initialization function as well as the update function,
we can configure the rest of the layer's parameters and allow the tactics system to manage
everything else. Here, we update this particular layer two times a second, which provides a
fast enough refresh to still be relevant:
SoldierTactics.InfluenceMap.TeamAreas = {
initializeFunction = InitializeTeamAreas,
layer = 0,
lastUpdate = 0,
-- Update in milliseconds.
updateFrequency = 500,
updateFunction = UpdateTeamAreas };
Currently, this influence map shows you how much of the sandbox is controlled by any
team at any point in time if we consider the spread of influence based solely on each
agent's position. While no decisions are made based on this data yet, it can be used to help
maintain strategy areas in the future.
Search WWH ::




Custom Search