User Tools

Site Tools


api:comp_building_attach_node

COMP_BUILDING_ATTACH_NODE

Category: Component

Parent class: COMPONENT

Properties


AttachNodeTypeList

Serialized


AllowedAngles

Serialized

  • Type: vec2f
  • Expected: vec2f value
  • Default value: { -20, 20 }

MultipleOrientationCount

Serialized

  • Type: integer
  • Expected: integer value
  • Default value: 1

ForbidRotation

Serialized

  • Type: boolean
  • Expected: boolean value
  • Default value: false

ResetRotationWhenAttached

Serialized

  • Type: boolean
  • Expected: boolean value
  • Default value: true

Functions


setAttachNodeType

void setAttachNodeType(type)

Name Type Description
type ATTACH_NODE_TYPE

addAttachNodeType

void addAttachNodeType(type)

Name Type Description
type ATTACH_NODE_TYPE

isNodeType

boolean isNodeType(type)

Name Type Description
type ATTACH_NODE_TYPE

getLinkedBuildingAttachNode

COMP_BUILDING_ATTACH_NODE getLinkedBuildingAttachNode()


getParentPart

COMP_BUILDING_PART getParentPart()


isAvailable

boolean isAvailable()


isCompatibleWithOtherNode

boolean isCompatibleWithOtherNode(otherNode)

Name Type Description
otherNode COMP_BUILDING_ATTACH_NODE

isAttached

boolean isAttached()

api/comp_building_attach_node.txt · Last modified: 2022/11/17 19:03 (external edit)