Downloadable

From EventScripts Community Encyclopedia

Contents

Overview

Syntax: downloadable <path-to-file>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Description

Marks a file as downloadable.


Note: It doesn't expand server variables. Prefix the command with es to expand variables (es downloadable).

Parameters

  • path-to-file - Location of the file to mark as downloadable relative to the base directory (i.e 'cstrike/' for Counter-Strike: Source).

<userComments></userComments>

Examples

block load
{
    // Mark a sound as downloadable.
    downloadable sound/testsound.wav
}
event es_map_start
{
    // We must mark it as downloadable again on map change.
    downloadable sound/testsound.wav
}

Notes

  • A file must be marked as downloadable again each map change.
  • Downloadable is only available in EventScripts v1.2 or higher.

See Also

blog comments powered by Disqus