📖 Wiki
Documentation and guides for Wiremod
📁Default Extensions
40 articles
e2 docs wirelink
Wirelink = :isHiSpeed() Returns true if the linked component is high-speed capable (2 ops) = :entity() Returns the entity of the linked component (2 ops) = :hasInput( Portname) Returns true if the lin
KemGus
e2 docs weapon
Weapon = :weapon() Returns the weapon that player E is currently holding (2 ops) = :weapon( Weaponclassname) Returns the weapon with specified class of player E (2 ops) = :hasWeapon( Classname) Return
KemGus
e2 docs vector2
Vector2 = vec2() Same as vec2(0,0) (1 ops) = vec2( X, Y) Makes a 2D vector (2 ops) = vec2( Xy) Makes a 2D vector (2 ops) = vec2( V) Converts a 3D vector into a 2D vector (the z component is dropped) (
KemGus
e2 docs vector
Vector = vec() Same as vec(0,0,0) (1 ops) = vec( X) Makes a 3D vector (2 ops) = vec( X, Y, Z) Makes a 3D vector (2 ops) = vec( V2) Converts a 2D vector into a 3D vector (the z component is set to 0) (
KemGus
e2 docs unitconv
Unitconv = toUnit( Rv1, Rv2) Converts default garrysmod units to specified units (2 ops) = fromUnit( Rv1, Rv2) Converts specified units to default garrysmod units (2 ops) = convertUnit( Rv1, Rv2, Rv3)
KemGus
e2 docs timer
Timer interval( Rv1) DEPRECATED. Use 'timer(sf)' (lambda timer) instead! Sets a one-time timer with name "interval" and delay in milliseconds (minimum delay for timers is 10ms) (20 ops) timer( Rv1, Rv
KemGus
e2 docs table
Table = table(...) (1 ops) :clear() Clears the table (3 ops) = :count() Returns the number of entries in the table. Does not add the entries in subtables (1 ops) = :ncount() Returns the number of sequ
KemGus
e2 docs string
String = :toNumber() Parses a number from a string (2 ops) = :toNumber( Base) Parses a number from a string. The argument given is the base. I.e. toNumber(16) will parse hex (2 ops) = toChar( N) Retur
KemGus
e2 docs steamidconv
Steamidconv = steamIDFrom64( Community_id) Converts Steam Community ID to Steam ID (5 ops) = steamIDTo64( Id) Converts Steam ID to Steam Community ID (5 ops)
KemGus
e2 docs sound
Sound soundPlay( Index, Duration, Path) Plays sound from the E2 chip. soundPlay(string Index, number Duration, string Path to File) (25 ops) soundPlay( Index, Duration, Path) Plays sound from the E2 c
KemGus
e2 docs signal
Signal signalSetGroup( Group) Sets the E-2's current signal group to S, this is applied during runOnSignal, signalSend, and signalSetOnRemove calls, so call it first (5 ops) = signalGetGroup() Gets th
KemGus
e2 docs serverinfo
Serverinfo = map() Returns the current map name (1 ops) = hostname() Returns the Name of the server (1 ops) = hostip() Returns the IP of the server (1 ops) = isLan() Returns 1 if lan mode is enabled (
KemGus