Getcvar (script event)

From modwiki

Jump to: navigation, search

Game class

This event operates on an instance of the game class type {{{gameclass}}}

Description

Returns the string for a CVar.

Usage

string getCVar( string name )

Parameters

  • [name] - The name of the CVar.

Examples

 
CVarValue = sys.getCVar("g_showhud");

Notes

This script returns a string containing the value of the given CVar.


Personal tools
Main
id Tech 5