E2
SExpression 2 bindings ACE registers for Wiremod's E2 chips. Called from E2 code as Entity:acfName() etc.; these run server-side.
📄 lua/entities/gmod_wire_expression2/core/custom/acf.lua
Functions
aceSetArmorProperties
Sets the ACF armor, ductility, and material of an entity
entity:aceSetArmorProperties(number thickness, number ductility, string material)acfActive
Returns 1 if an ACF engine, ammo crate, fuel tank, radar, or sensor is on
entity:acfActive()acfAmmoCount
Returns the number of rounds in active ammo crates linked to an ACF gun or rack.
entity:acfAmmoCount()acfAmmoType
Returns the type of ammo in a crate or gun
entity:acfAmmoType()acfBlastRadius
Returns the blast radius of an HE, APHE, or HEAT round in an ACF ammo crate or gun
entity:acfBlastRadius()acfBrake
Sets the brakes for an ACF gearbox
entity:acfBrake(number brake)acfBrakeLeft
Sets the left brakes for an ACF gearbox
entity:acfBrakeLeft(number brake)acfBrakeRight
Sets the right brakes for an ACF gearbox
entity:acfBrakeRight(number brake)acfCVTRatio
Sets the gear ratio of a CVT, set to 0 to use automatic calculation
entity:acfCVTRatio(number ratio)acfCaliber
Returns the caliber of an ammo crate or gun
entity:acfCaliber()acfCapacity
Returns the capacity of an acf ammo crate or fuel tank
entity:acfCapacity()acfClutch
Sets the clutch for an ACF gearbox
entity:acfClutch(number clutch)acfClutchLeft
Sets the left clutch for an ACF gearbox
entity:acfClutchLeft(number clutch)acfClutchRight
Sets the right clutch for an ACF gearbox
entity:acfClutchRight(number clutch)acfCurVersion
Returns the current ACE version
acfCurVersion()acfDragCoef
Returns the drag coefficient of ammo contained in an ACF ammo crate or gun
entity:acfDragCoef()acfDragDiv
Return the current ACF drag divisor
acfDragDiv()acfEffectiveArmor
Returns the effective armor given an armor value and hit angle
acfEffectiveArmor(number armor, number angle)acfFLSpikeMass
Returns the mass of a single spike in a flechette round in an ACF ammo crate or gun
entity:acfFLSpikeMass()acfFLSpikeRadius
Returns the radius of the spikes in a flechette round, in mm
entity:acfFLSpikeRadius()acfFLSpikes
Returns the number of projectiles in a flechette round in an ACF ammo crate or gun
entity:acfFLSpikes()acfFinalRatio
Returns the final drive of an ACF gearbox
entity:acfFinalRatio()acfFire
Sets the firing state of an ACF gun or rack
entity:acfFire(number fire)acfFireRate
Returns the fire rate of an ACF gun
entity:acfFireRate()acfFlyInertia
Returns the inertia of an ACF engine's flywheel
entity:acfFlyInertia()acfFlyMass
Returns the mass of an ACF engine's flywheel
entity:acfFlyMass()acfFuel
Returns the remaining fuel, in liters or kilowatt-hours, of an ACF engine or fuel tank
entity:acfFuel()acfFuelLevel
Returns the remaining fuel in an ACF engine or fuel tank as a percentage of its total capacity
entity:acfFuelLevel()acfFuelRemaining
Returns the total fuel remaining for an ACF engine, in liters
entity:acfFuelRemaining()acfFuelRequired
Returns 1 if the ACF engine requires fuel to run
entity:acfFuelRequired()acfFuelUse
Returns the current fuel consumption in liters or kilowatts per minute of an ACF engine
entity:acfFuelUse()acfGear
Returns the current gear of an ACF gearbox
entity:acfGear()acfGearRatio
Returns the ratio for a specified gear of an ACF gearbox
entity:acfGearRatio(number gear)acfGetAmmoCrates
Returns an array of all ammo crates linked to the ACF entity
entity:acfGetAmmoCrates()acfGetCrew
Returns an array of all crew seats linked to the ACF entity
entity:acfGetCrew()acfGetFuelTanks
Returns an array of all fuel tanks linked to an ACF engine
entity:acfGetFuelTanks()acfGetLinkedWheels
Returns an array of all wheels linked to this engine/gearbox, and child gearboxes
entity:acfGetLinkedWheels()acfHEATAirGapFactor
Returns the current air gap factor (air effectiveness against HEAT)
acfHEATAirGapFactor()acfHeat
Returns the temperature of an ACF entity
entity:acfHeat()acfHitClip
Returns 1 if the hitpos is on a clipped part of the entity
entity:acfHitClip(vector hitPos)acfHoldGear
Applies gear hold for an automatic ACF gearbox
entity:acfHoldGear(number holdGear)acfIdleRPM
Returns the idle RPM of an ACF engine
entity:acfIdleRPM()acfInGear
Returns 1 if an ACF gearbox is in gear
entity:acfInGear()acfInPowerband
Returns 1 if the RPM of an ACF engine is within its powerband
entity:acfInPowerband()acfInfoRestricted
No description available.
acfInfoRestricted()acfIsAmmo
Returns 1 if the entity is an ACF ammo crate
entity:acfIsAmmo()acfIsDual
Returns whether an ACF gearbox is dual clutch
entity:acfIsDual()acfIsElectric
Returns 1 if the ACF engine is electric
entity:acfIsElectric()acfIsEngine
Returns 1 if the entity is an ACF engine
entity:acfIsEngine()acfIsFuel
Returns 1 if the entity is an ACF fuel tank
entity:acfIsFuel()Showing 1–50 of 112 functions