FANDOM



Different type of files references 编辑

Notes 编辑

Game directory

c:\arma2

Parameter used:

-profiles=c:\arma2

ProcMon used to determine the file access.

Tests done from within a SP mission running a dev console:

call compile "CODE";

File only reference 编辑

_handle = [] execVM "test.sqf";

Searches in:

  • .\arma2\missions\CurrentMission.CurrentWorld\test.sqf
  • .\arma2\scripts\test.sqf
  • .\arma2\test.sqf

Subfolder reference 编辑

_handle = [] execVM "SubFolder\test.sqf";

Searches in:

  • .\arma2\missions\CurrentMission.CurrentWorld\SubFolder\test.sqf
  • .\arma2\scripts\SubFolder\test.sqf
  • .\arma2\SubFolder\test.sqf

Addon reference 编辑

_handle = [] execVM "\SubFolder\test.sqf";

Searches in:

  • .\arma2\SubFolder\test.sqf

Global scripts folder 编辑

For non addon references the game also looks for external files in the arma\scripts folder.

In the config space there is path defined that might define the location:

scriptsPath = "ca\data\scripts\";

noFilePatching 编辑

With -noFilePatching set as game parameter, the game will not look in external folders but only in addons for addon references.

See also:

See also 编辑