logic_ruleset

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)

logic_ruleset is a logical entity available in No More Room in Hell No More Room in Hell.

Entity Description

The logic_ruleset is a logical entity which allows mappers to set CVars for the duration of the map, not too dissimilar in function to point_servercommand. This is likely cleaner for servers however, and should be preferred.

KeyValues

Name (targetname) <string>
The name that other entities refer to this entity by.
Entity Scripts (vscripts) <string>
Name(s) of script files that are executed after all entities have spawned.
Script think function (thinkfunction) <string>
Name of a function in this entity's script scope which will be called automatically.

Flags

Inputs

Kill
Kills the entity.
ApplyCvars
Applies cvars, with parameter override of a string in <cvar> <value> format, and optionally with ';' delimiter for multiple cvars, e.g. sv_gravity 200;sv_brainstem 1
RevertCvar
Reverts cvar to ruleset value (when available), or default, with parameter override of a cvar name as string.

Outputs

OnUser1 to OnUser4
Fired in response to the FireUser inputs.