Skip to content
Divran edited this page Apr 22, 2021 · 3 revisions

Jump to table of contents

Console

Number = concmd(String Command)

Takes a string and executes it in console. Returns 1 if it succeeded and 0 if it failed.The client must enable this in the console with "wire_expression2_concmd 1". "wire_expression2_concmd_whitelist" allows you to choose which commands can be used.[http://www.wiremod.com/forum/151800-post12.html] (5 ops)

String = convar(String Cvar)

Give a console command such as "name" and it returns the set value (5 ops)

Number = convarnum(String Cvar)

Give a console command such as "sbox_godmode" and it returns the set value (5 ops)

Number = maxOfType(String Typename)

Returns the maximum allowed of a certain type of entity, i.e. maxOfType("wire_thrusters"). Returns 0 if you enter an invalid parameter (5 ops)

Number = playerDamage()

Returns 1 if player vs player damage is enabled on the server (5 ops)

Expression 2 ⚛️

Tutorials (In learning order) 🎓

Extras ❔

Tools 🛠️

Click To Expand

Advanced

Beacon 💡

Control 🎛️

Data 💿

Detection 👀

Display 💻

Render

I/O 🔌

Physics 🚀

Utilities 🛠️

RFID

Wireless 🛜

Gates 🚥

Click To Expand

TBD

Clone this wiki locally