Game Development Reference
In-Depth Information
Configuring team influences
With our initialization and updating implemented, we can configure the influence layer for
the tactics systems. For this particular influence map, we'll use layer 1 to store information.
While no implementation showing danger from the perspective of team1 is presented, cre-
ating an additional influence map layer to store that information simply requires you to cre-
ate a new UpdateDangerousAreas function that replaces the usage of team2 with
team1 :
SoldierTactics.lua :
SoldierTactics.InfluenceMap.DangerousAreas = {
initializeFunction = InitializeDangerousAreas,
layer = 1,
lastUpdate = 0,
updateFrequency = 500,
updateFunction = UpdateDangerousAreas };
The following is the influence map layer showing dangerous areas from the perspective of
team2 :
Search WWH ::




Custom Search