promotional bannermobile promotional banner

CC:CBC Compact Mount

Adds a CC: Tweaked peripheral for CBC: Compact Mount.
fr0nick | CC:CBC Compact Mount
Create a server, get 25% off your first monthaffiliate logo
Create Server
affiliate banner image

Do you use CC:CBC? Do you use CBC: Compact Mount? Would you like CC:CBC to work with compact cannon mounts as well? Then this mod is for you!

CC:CBC Compact Mount turns compact cannon mounts into peripherals for computers from CC: Tweaked, recreating the functionality of CC:CBC.

Note: This mod does not replace CC:CBC, you can use them separately.

Lua API

Peripheral type: compact_cannon_mount

Method Parameters Returns Description
setComputerControl enabled: boolean nil Enables/disables computer control mode.
isComputerControl - boolean Current computer control mode status.
setTargetPitch pitch: number nil Sets vertical angle only.
getInfo - table Returns cannon telemetry/state.
assemble enabled: boolean boolean true = assemble, false = disassemble.
fire enabled: boolean boolean Controls fire signal (true keeps firing signal active).

getInfo() fields

Field Type Description
computerControl boolean Whether computer control mode is active.
assembled boolean Whether the cannon is assembled on the mount.
pitch number Current vertical angle.
targetPitch number Target vertical angle.
pitchShaftSpeed number Pitch interface shaft speed.
x, y, z number Cannon Mount position in the world.

Dependencies:

The CC:CBC Compact Mount Team

profile avatar
Owner
  • 3
    Projects
  • 1.7K
    Downloads

More from fr0nick