Starfall

S
117 functions

The Starfall acf library and entity methods ACE registers for the Starfall processor. Accessed in Starfall as acf.getGunSpecs(...) and Entity:acfName().

📄 lua/starfall/libs_sv/acf.lua

Functions

Sort by:

aceSetArmorProperties

SNeeds Review

No description available.

Entity:aceSetArmorProperties(thickness, ductility, material)
3 params1 views

acfAmmoCount

SVerified

Returns the number of rounds in active ammo crates linked to an ACF weapon

Entity:acfAmmoCount()
0 params→ 1 return3 views

acfAmmoType

SVerified

Returns the type of ammo in a crate or gun

Entity:acfAmmoType()
0 params→ 1 return1 views

acfBlastRadius

SVerified

Returns the blast radius of an HE, APHE, or HEAT round

Entity:acfBlastRadius()
0 params→ 1 return1 views

acfBrake

SVerified

Sets the brakes for an ACF gearbox

Entity:acfBrake(brake)
1 params1 views

acfBrakeLeft

SVerified

Sets the left brakes for an ACF gearbox

Entity:acfBrakeLeft(brake)
1 params2 views

acfBrakeRight

SVerified

Sets the right brakes for an ACF gearbox

Entity:acfBrakeRight(brake)
1 params1 views

acfCVTRatio

SVerified

Sets the gear ratio of a CVT, set to 0 to use built-in algorithm

Entity:acfCVTRatio(ratio)
1 params1 views

acfCaliber

SVerified

Returns the caliber of an ammo or gun

Entity:acfCaliber()
0 params→ 1 return1 views

acfCapacity

SVerified

Returns the maximum capacity of an acf ammo crate or fuel tank

Entity:acfCapacity()
0 params→ 1 return1 views

acfClutch

SVerified

Sets the clutch for an ACF gearbox

Entity:acfClutch(clutch)
1 params0 views

acfClutchLeft

SVerified

Sets the left clutch for an ACF gearbox

Entity:acfClutchLeft(clutch)
1 params1 views

acfClutchRight

SVerified

Sets the right clutch for an ACF gearbox

Entity:acfClutchRight(clutch)
1 params0 views

acfDragCoef

SVerified

Returns the drag coef of the ammo in a crate or gun

Entity:acfDragCoef()
0 params→ 1 return2 views

acfFLSpikeMass

SVerified

Returns the mass of a single spike in a FL round in a crate or gun

Entity:acfFLSpikeMass()
0 params→ 1 return0 views

acfFLSpikeRadius

SVerified

Returns the radius of the spikes in a flechette round in mm

Entity:acfFLSpikeRadius()
0 params→ 1 return1 views

acfFLSpikes

SVerified

Returns the number of projectiles in a flechette round

Entity:acfFLSpikes()
0 params→ 1 return1 views

acfFinalRatio

SVerified

Returns the final drive ratio for an ACF gearbox

Entity:acfFinalRatio()
0 params→ 1 return1 views

acfFire

SVerified

Sets the firing state of an ACF weapon

Entity:acfFire(fire)
1 params1 views

acfFireRate

SVerified

Returns the rate of fire of an acf gun

Entity:acfFireRate()
0 params→ 1 return1 views

acfFlyInertia

SVerified

Returns the inertia of an ACF engine's flywheel

Entity:acfFlyInertia()
0 params→ 1 return1 views

acfFlyMass

SVerified

Returns the mass of an ACF engine's flywheel

Entity:acfFlyMass()
0 params→ 1 return2 views

acfFuel

SVerified

Returns the remaining liters or kilowatt hours of fuel in an ACF fuel tank or engine

Entity:acfFuel()
0 params→ 1 return0 views

acfFuelLevel

SVerified

Returns the amount of fuel in an ACF fuel tank or linked to engine as a percentage of capacity

Entity:acfFuelLevel()
0 params→ 1 return0 views

acfFuelRemaining

SVerified

Gets the fuel remaining for an ACF engine

Entity:acfFuelRemaining()
0 params→ 1 return0 views

acfFuelRequired

SVerified

(DEPRECATED) Returns true if the current engine requires fuel to run

Entity:acfFuelRequired()
0 params→ 1 return1 views

acfFuelUse

SVerified

Returns the current fuel consumption in liters or kilowatts per minute of an engine

Entity:acfFuelUse()
0 params→ 1 return0 views

acfGear

SVerified

Returns the current gear for an ACF gearbox

Entity:acfGear()
0 params→ 1 return2 views

acfGearRatio

SVerified

Returns the ratio for a specified gear of an ACF gearbox

Entity:acfGearRatio(gear)
1 params1 views

acfGetActive

SVerified

Returns true if the acf engine, fuel tank, ammo crate, radar, or sensor is active

Entity:acfGetActive()
0 params→ 1 return1 views

acfGetCrew

SVerified

Returns all crewseats linked to an acf entity

Entity:acfGetCrew()
0 params→ 1 return1 views

acfGetLinkedWheels

SVerified

Returns any wheels linked to this engine/gearbox or child gearboxes

Entity:acfGetLinkedWheels()
0 params→ 1 return1 views

acfGetThrottle

SVerified

Returns the throttle value

Entity:acfGetThrottle()
0 params→ 1 return1 views

acfHeat

SVerified

Returns the heat of an ACF entity

Entity:acfHeat()
0 params→ 1 return1 views

acfHitClip

SVerified

Returns true if hitpos is on a clipped part of prop

Entity:acfHitClip(hitpos)
1 params→ 1 return1 views

acfHoldGear

SVerified

Applies gear hold for an automatic ACF gearbox

Entity:acfHoldGear(hold)
1 params0 views

acfIdleRPM

SVerified

Returns the idle rpm of an ACF engine

Entity:acfIdleRPM()
0 params→ 1 return0 views

acfInGear

SVerified

Returns true if an ACF gearbox is in gear

Entity:acfInGear()
0 params→ 1 return1 views

acfInPowerband

SVerified

Returns true if the RPM of an ACF engine is inside the powerband

Entity:acfInPowerband()
0 params→ 1 return2 views

acfIsAmmo

SVerified

Returns true if the entity is an ACF ammo crate

Entity:acfIsAmmo()
0 params→ 1 return1 views

acfIsDual

SVerified

Returns whether an ACF gearbox is dual clutch

Entity:acfIsDual()
0 params→ 1 return1 views

acfIsElectric

SVerified

Returns true if an ACF engine is electric

Entity:acfIsElectric()
0 params→ 1 return1 views

acfIsEngine

SVerified

Returns true if the entity is an ACF engine

Entity:acfIsEngine()
0 params→ 1 return1 views

acfIsFuel

SVerified

Returns true if the entity is an ACF fuel tank

Entity:acfIsFuel()
0 params→ 1 return1 views

acfIsGearbox

SVerified

Returns true if the entity is an ACF gearbox

Entity:acfIsGearbox()
0 params→ 1 return1 views

acfIsGun

SVerified

Returns true if the entity is an ACF gun

Entity:acfIsGun()
0 params→ 1 return1 views

acfIsInfoRestricted

SVerified

Returns true if this entity contains sensitive info and is not accessable to us

Entity:acfIsInfoRestricted()
0 params→ 1 return1 views

acfIsReloading

SVerified

Returns true if an ACF gun is reloading

Entity:acfIsReloading()
0 params→ 1 return0 views

acfLinkTo

SVerified

Perform ACF links

Entity:acfLinkTo(target, notify)
2 params→ 2 returns1 views

acfLinks

SVerified

Returns the ACF links associated with the entity

Entity:acfLinks()
0 params→ 1 return0 views

Showing 1–50 of 117 functions