ScarDoc

Start typing to search the SCAR reference.

Function
AI

AI_SetTableParam

Sets the AIplayer's global tableName.parameter to given value (if table, appends/replaces pairs to existing table at tableName.parameter)

On this page
AI_SetTableParam(player, tableName, parameter, value)

Description

If tableName is \"_G\" we set the global table/parameter _G[parameter]=value. Value can be bool, string, number, table

Parameters

  • playerAIPlayerrequired
  • tableNameStringrequired
  • parameterStringrequired
  • valueAnyTyperequired

Returns

Unknown

Source

Declared in the game's script sources at:

scar/ai/ai_utils.scar