ShareSource
The object type a voxel animation borrows its voxel model from.
- Applies to
- VoxelAnimType
- File
rules.ini- Section
[<ObjectType ID>]- Value
- target
- When omitted
none
Consulted only where one of ShareBodyData, ShareTurretData or ShareBarrelData is set. With none of them set the type loads a .VXL of its own, named after its Image, and this setting is not read at all.
The value is an ObjectType ID, matched against the InfantryType, VehicleType, AircraftType and BuildingType lists in that order. The model is taken by reference rather than copied: the animation points at the very data the named type draws from, so the two always show the same artwork and the borrowing costs no memory of its own.
[VoxelAnims]20=MYTURRETDEBRIS ; a VoxelAnimType, registered here so the rules create it
[MYTURRETDEBRIS]ShareTurretData=yesShareSource=MYTANK ; a VehicleType registered in [VehicleTypes]VoxelIndex=0MinAngularVelocity=10.0MaxAngularVelocity=14.0A name matching nothing in those four lists leaves the animation holding no model, and so does a named type that has no model for the part asked for — a type drawn from shapes rather than voxels, or a vehicle without a turret, which has neither turret nor barrel model. Such a piece is still created, still bounces, still damages what it lands on and still expires; it is simply never drawn.