User Tools

Site Tools


api:part_probability

PART_PROBABILITY

Category: Data

Cloneable

Properties


BuildingPart

Serialized


Probability

Serialized

Probability to spawn the part. 0 for never, 1 for always.

  • Type: float
  • Expected: float value
  • Default value: 1.0f

ForcedAttachNodeName

Serialized

If specified, the part will be randomly attached to a node with this exact name, or 'Blender' variation of this name (.000X prefix). If no attach is found, the part will not be spawned.
If not specified, it will randomly select an attach compatible with the Building Part type. If no attach is found, the part will be spawned at the parent's origin.

  • Type: string
  • Expected: string value

FailIfForcedAttachNotFound

Serialized

If the forced attach is not found, an error will be reported. Only used when forcedAttachNodeName is specified.

  • Type: boolean
  • Expected: boolean value
  • Default value: true
api/part_probability.txt · Last modified: 2025/06/04 13:52 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki