set

From Tremulous Wiki
Jump to: navigation, search
This article (Set) is a stub. You can help by adding information to this article.
set


Usage

set thenameofavariable thevalueyouwantoassign

Example:

set human_build_turret "build mgturret;+attack;-attack"

This creates the new variable "human_build_turret" (if it doesn't already exist - which it usually doesn't) and assigns the value to it that you see in the quotation marks. You don't have to use the quotation marks to assign a variable but in this case, the value that is assigned does contain the special character ";" which marks a new line (or a new command), and we wanted to include that into the assigned value, so the quotation marks were necessary here.

The three commands in the quotation marks, if used by a human builder, will cause the red/green turret ghost to appear and then to immediately be built for real, causing the normal blue building process ghost.

To execute this nice set of commands that we have assigned to the variable, use the vstr command:

vstr human_build_turret

This makes the turret.

Remember that every line that you enter in the console and that you want to be interpreted as a command must start with a "/". So, to make for example a bind, do this in the console:

/bind t vstr human_build_turret

Tremulous
Personal tools