EvalUploaded by Jes00
Jul 20th 2019, 7:17 PM
Use the console/Torquescript in the server chat using the $ symbol(default). Comes with some shortened functions. A raycast is also fired whenever you use eval and some useful variables are added in so that you don't have to type as much. Eval is host-only but can be used by super admins also if you wish. There are a couple of things to block eval from being disabled with eval, but you probably still can if you really try. Any time eval is used the code is broadcasted to the whole server in the chat, as well as in the console.
Never set $Eval::SuperAdmin to true unless you absolutely 100% trust your super admins!!!
You can use /evalHelp, $help(default), or check the description.txt file for help.
$Eval::Symbol - Symbol(s) used to perform eval. Can be any length.
$Eval::SuperAdmin - Wether or not super admins can use eval.
fcbn(%name); - Find client by name shortened.
findPlayerByName(%name);- Find player by name.
fpbn(%name); - Find player by name shortened.
clearConsole(); - Adds whitespace to the bottom of the console.
colorTest(); - Shows you the \c# colors in the console.
%client, %cl, %me - Your client object.
%player, %pl - Your player object.
%hitObj - Object hit by a raycast fired when you use eval.
%hitData - Datablock of the thing your raycast hit.
%hitPos - Position where your raycast hit.
%hitDist - Distance from you to where your raycast hit.
%hitNorm - Normal where your raycast hit.
$Eval::Range - Range of raycast fired.
$Eval::Typemasks - Typemasks for raycast fired.