Add-Ons >> Boards >> Server Mods >> Eval


Uploaded by Jes00
Server Mods
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.
Included things:
$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.


Version 1.3.0

December 19, 2019

Version 1.2.0

September 27, 2019

Version 1.1.0

July 23, 2019


No bugs reported.
Feb 10th 2020, 2:42 PM
impanda wants to know your location