Usage:
Ai.NumAStarResources
number
Argument values:
argument 1: | range is 10 to 12; most commonly 12 |
This property is not a part of any defined type of object.
Used in a total of 23 .con files: Aipathfinding.con
Parent directory of these .con files: Bf1942/Levels
Example: (from Bf1942/Levels/Stalingrad/AIpathFinding.con)
if v_arg1 == host
rem ----- Host
rem ----------------------------------------------------------------------------
rem *** pathfinding debug mode
rem game.aiPathfindingDebuggingActive 1
rem *** Set number of maps ***
rem ai.setNSearchMaps 2 *** DEPRICATED ***
rem ai.setNSearchTypes 2 *** DEPRICATED ***
rem *** Set number of AStar resources ***
Ai.NumAStarResources 12
rem *** Setup map parameters ***
rem *** searchMap name/waterHeight/waterDepth/maxSlope/brush/lowClipLevel/hiClipLevel/considerAITypes
rem *** searchType name/mapNum/minSearchLevel
rem *** Tank ***
Ai.AddSearchMap Tank0 0 0 35 3.0 0.3 2.5 0
Ai.AddSearchType Tank 0 0
Ai.SetMapSpawnPoints 0 615.726/376.685
Ai.SetSmoothin 0 20
rem *** Infantry ***
Ai.AddSearchMap Infantry1 0 1.5 35 1.0 0.4 2.0 1
Ai.AddSearchType Infantry 1 0
Ai.SetMapSpawnPoints 1 615.726/376.685
Ai.SetSmoothin 1 10
rem *** Boat ***
Ai.AddSearchType Boat
rem *** LandingCraft ***
Ai.AddSearchType LandingCraft
rem *** Car ***
rem *** Car ***
Ai.AddSearchMap Car4 0 0 20 3.0 0.3 2.5 0
Ai.AddSearchType Car 2 0
Ai.SetMapSpawnPoints 2 615.726/376.685
Ai.SetSmoothin 4 6
Go to the Ai properties list page, Ai page, All Properties list, or Main scripting page.