# Preload Script

Grammar — Preload file|Script File queue|Immediately/For Next Map
FlagsNative | Action

Preloads a script file. The file must be explicitly identified (it won’t work if you plug in a variable to that parameter). Preloading will force an asset or data entry to be loaded into memory before the map starts, rather than be loaded on demand as the map runs.

# Arguments

Returns — void

native void PreloadScript(string path, bool queue);

Category: Game / Preloading

# Examples

— None found —