- For more information, see Scripting Basics
Variables for ut_radio
/ say_team
commands. These do not work with ut_echo
commands. They also will not work elsewhere in scripts. You can prefix variables with $
or #
.
Variable | Description | Output type |
---|---|---|
$bullets
|
Number of bullets in your current clip.
So |
<number>
|
$clips
|
Number of clips remaining.
So |
<number>
|
$crosshair
|
Current map location under crosshair. Outputs "unknown" if map does not specify location name.
So |
<text>
|
$gameitem
|
"flag" in CTF, "bomb" in Bomb Mode, and "cat-bird" or randomly "coinbird" in other game modes.
So |
<"flag" | "bomb" | "cat-bird" | "coinbird">
|
$gametime
|
Remaining time in this game. Very inaccurate though! For example, with 47 seconds left, it might report 8 seconds, or with 2:55 left, it will report 2 minutes.
So |
<number> <"minutes" | "seconds">
|
$health
|
Current health status. 0-10% = near death, 10-50% = badly wounded, 50-90% = wounded, 90%-100% = healthy.
So |
<"healthy" | "wounded" | "badly wounded" | "near death">
|
$leader
|
Will tell you who is currently the leader (Follow The Leader game mode only). Outputs that player's name.
So |
<text>
|
$location
|
Your current location on the map. Outputs "unknown" if map does not specify location name.
So |
<text>
|
$roundtime
|
Time left in current round, for applicable game modes.
So |
<number> <"minutes" | "seconds">
|
$weapon
|
The name of the weapon you are currently holding.
So |
<text>
|
Scripts & Configs |
---|