====== PART_PROBABILITY ====== **Category**: Data //[[:annotations#cloneable|Cloneable]]// ===== Properties ===== ---- ==== BuildingPart ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:api:building_part|BUILDING_PART]]'' * **Expected**: ''asset ID'' ---- ==== Probability ==== //[[:annotations#serialized|Serialized]]// Probability to spawn the part. 0 for never, 1 for always. * **Type**: ''[[:data-types#float|float]]'' * **Expected**: ''float value'' * **Default value**: ''1.0f'' ---- ==== ForcedAttachNodeName ==== //[[:annotations#serialized|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**: ''[[:data-types#string|string]]'' * **Expected**: ''string value'' ---- ==== FailIfForcedAttachNotFound ==== //[[:annotations#serialized|Serialized]]// If the forced attach is not found, an error will be reported. Only used when forcedAttachNodeName is specified. * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''true''