User Tools

Site Tools


communityapi:ebf:building_function_simple_drawbridge

BUILDING_FUNCTION_SIMPLE_DRAWBRIDGE

Category: Asset
Mod Dependency: Foundation EBF

Parent class: BUILDING_FUNCTION

Properties


OpeningAngle

  • Type: float
  • Default value: 85.0

OpeningSpeed

  • Type: float
  • Default value: 2.0

OpenHoldTime

  • Type: float
  • Default value: 2.0

TriggerNodeName

  • Type: string
  • Default value: Trigger
  • Should be a single mesh object. The name of the mesh object should start with this word. I recommend two small cubes or planes on either side of the drawbridge with a transparent texture

TriggeringDistance

  • Type: float
  • Default value: 2.0

DrawbridgeNodeName

  • Type: string
  • Default value: Drawbridge
  • The names of all meshes belonging to the Drawbridge should start with this word

DrawbridgePivotPoint

  • Type: vec3f
  • Default value: { 0, 0, 0 }
  • In Local Coordinates!

Chain1NodeName

  • Type: string
  • Default value: Chain1
  • The names of all meshes belonging to the first Chain should start with this word

Chain1PivotNodeName

  • Type: string
  • Default value: DrawbridgeChain1Pivot
  • Should be a single empty/locator node placed where the Chain connects with the Drawbridge. The name of this node should begin with the DrawbridgeNodeName defined above to rotate with the Drawbridge as it raises/lowers!

Chain2NodeName

  • Type: string
  • Default value: Chain2
  • The names of all meshes belonging to the second Chain should start with this word

Chain2PivotNodeName

  • Type: string
  • Default value: DrawbridgeChain1Pivot
  • Should be a single empty/locator node placed where the Chain connects with the Drawbridge. The name of this node should begin with the DrawbridgeNodeName defined above to rotate with the Drawbridge as it raises/lowers!

ChainRotationSpeed

  • Type: float
  • Default value: 1.0
  • Recommended value half the OpeningSpeed defined above.

ChainEclipsePoint

  • Type: float
  • Default value: 0.0
  • The horizontal distance after which chain parts should disappear.

communityapi/ebf/building_function_simple_drawbridge.txt · Last modified: 2021/05/19 19:03 by minotorious

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki