VE Lua Documentation

Press F to search!

getBeamRestLength

Definition


-- @/=[C]:-1
function getBeamRestLength(...)

Callers

@/lua/vehicle/controller/propAnimation/googlyEyes.lua
  for _, cid in ipairs(eyeBeamIds) do
    eyeBeamData[cid] = {defaultLength = obj:getBeamRestLength(cid)}
  end
  for _, cid in ipairs(eyeAttachmentBeamIds) do
    eyeAttachmentData[cid] = {defaultLength = obj:getBeamRestLength(cid)}
  end
@/lua/vehicle/controller/bypassDampers.lua
      soundNodeCid = v.data.beams[beamCid].id1,
      initialBeamLength = obj:getBeamRestLength(beamNameLookup[damperData.beamName]),
      directionSmoother = newTemporalSmoothing(500, 500),
@/lua/vehicle/powertrain/hydraulicCylinder.lua
        cylinder.beamCount = cylinder.beamCount + 1
        currentExtend = currentExtend + obj:getBeamRestLength(cid)
      end
@/lua/vehicle/beamstate.lua
    local d = {
      obj:getBeamRestLength(beam.cid),
      obj:beamIsBroken(beam.cid),