AddSearchType Property

Usage:
   Ai.AddSearchType string number number

Argument values:

argument 1:    Amphibious, Amphibius, Boat, Boat2, Car, Infantery, Infantry, LandingCraft, LandingCraft3, Tank; most commonly Tank
argument 2:    [optional] range is 0 to 4; most commonly 0, 1
argument 3:    [optional] range is 0 to 4; most commonly 0

This property is not a part of any defined type of object.

Used in a total of 32 .con files: Aipathfinding.con, Genericpathfinding.con

Parent directories of these .con files: Bf1942/Levels, ai

Example: (from Bf1942/Levels/Gothic_Line/AIpathFinding.con)
   if v_arg1 == host
   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 30 3.0 0.3 2.5 0
   Ai.AddSearchType Tank 0 0
   Ai.SetMapSpawnPoints 0 639.649/141.925
   Ai.SetSmoothing 0 20
   rem *** Infantry ***
   Ai.AddSearchMap Infantry1 0 1.5 40 1.0 0.4 2.0 1
   Ai.AddSearchType Infantry 1 0
   Ai.SetMapSpawnPoints 1 639.649/141.925
   Ai.SetSmoothing 1 10
   Ai.AddSearchType Boat
   Ai.AddSearchType LandingCraft
   Ai.AddSearchType Amphibious


Go to the Ai properties list page, Ai page, All Properties list, or Main scripting page.