api:part_probability
Table of Contents
PART_PROBABILITY
Category: Data
Properties
BuildingPart
Probability
Probability to spawn the part. 0 for never, 1 for always.
- Type:
float
- Expected:
float value
- Default value:
1.0f
ForcedAttachNodeName
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
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