ScarDoc

Start typing to search the SCAR reference.

Function
AI

AI_DifVar

Takes in a table and chooses the right variable for the difficulty setting. 1-4 elements. Acquires current difficulty by default.

On this page
AI_DifVar(aiPlayer, difficultyVariables, difficulty)

Description

Takes in a table and chooses the right variable for the difficulty setting. 1-4 elements. Acquires current difficulty by default.

Parameters

  • aiPlayerPlayer/AIPlayerrequired
  • difficultyVariablesTablerequired
  • difficultyIntegeroptional

Returns

Variable

Source

Declared in the game's script sources at:

scar/ai/ai_utils.scar