Phasor  01.00.10.059
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
halo::server::scriptloader Namespace Reference

Functions

void LoadScripts ()
 
bool IsValidScript (const std::string &script)
 
e_command_result sv_script_reload (void *, commands::CArgParser &args, COutStream &out)
 Reloads the specified script, or if none specified all scripts.
 
e_command_result sv_script_load (void *, commands::CArgParser &args, COutStream &out)
 Loads the specified script for the duration of the current map.
 
e_command_result sv_script_unload (void *, commands::CArgParser &args, COutStream &out)
 Unloads the specified script.
 
e_command_result sv_script_list (void *, commands::CArgParser &args, COutStream &out)
 Lists all currently loaded scripts.
 

Function Documentation

bool halo::server::scriptloader::IsValidScript ( const std::string &  script)
void halo::server::scriptloader::LoadScripts ( )
e_command_result halo::server::scriptloader::sv_script_list ( void *  ,
commands::CArgParser args,
COutStream out 
)

Lists all currently loaded scripts.

Example usage: sv_script_list

e_command_result halo::server::scriptloader::sv_script_load ( void *  ,
commands::CArgParser args,
COutStream out 
)

Loads the specified script for the duration of the current map.

script The script to load. persistent Whether or not the script is persistent (shouldn't unload between games)

Example usage: sv_script_load somescript true

e_command_result halo::server::scriptloader::sv_script_reload ( void *  ,
commands::CArgParser args,
COutStream out 
)

Reloads the specified script, or if none specified all scripts.

[script] The script to reload (optional)

Example usage: sv_script_reload

e_command_result halo::server::scriptloader::sv_script_unload ( void *  ,
commands::CArgParser args,
COutStream out 
)

Unloads the specified script.

script The script to unload

Example usage: sv_script_unload testscript