Browsing Wiremod's section
← Back to ACE
🔁

Mirrored article

This page is synced automatically from the wiremod/wire GitHub wiki (last synced 1 hour ago). Edits made here will be overwritten on the next sync — contribute on the source wiki instead.

e2 docs console

📁 PlayersUpdated 1 hour ago•0 views
Console = concmd( 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_ex

Jump to table of contents

Console
= concmd( 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)

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

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

= maxOfType( 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)

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

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.