logic_measure_movement
logic_measure_movement is an existing point entity available
with all versions of Mapbase.An entity that can measure the movement of an entity relative to another entity and apply that movement to a third entity.
KeyValues
- Fire position outputs (ShouldOutputPosition) <choices>
Allows OutPosition and OutAngles to be fired with the resulting position while this entity is active. Does not apply to the GetPosition input.
Allows OutPosition and OutAngles to be fired with the resulting position while this entity is active. Does not apply to the GetPosition input.
- Measurement Attachment (MeasureAttachment) <string>
Only useful for the ''Attachment point'' measurement type. This attachment should be on the Entity to Measure and measurements will correspond to its position and angles.
Only useful for the ''Attachment point'' measurement type. This attachment should be on the Entity to Measure and measurements will correspond to its position and angles.
Flags
- [1] Ignore X : 1
- [2] Ignore Y : 2
- [4] Ignore Z : 4
- [8] Use 'Ignore' flags for origin instead of angles : 8
- [16] Use new teleportation rules (smoother movement) : 16
- [32] Don't change target's angles : 32
Inputs
- SetTarget
<target_destination>
Set the Entity to Move, which will be moved to mimic the measured entity.
Set the Entity to Move, which will be moved to mimic the measured entity.
- SetMeasureType
<integer>
Sets the measurement type.
Sets the measurement type.
- SetMeasureAttachment
<string>
Sets the measurement attachment.
Sets the measurement attachment.
- ShouldOutputPosition
<bool>
Sets whether we are allowed to fire position outputs while this entity is active.
Sets whether we are allowed to fire position outputs while this entity is active.
- GetPosition
<void>
Initiates a single measurement with the current settings, only firing OutPosition and OutAngles without moving anything. (it doesn't need a target to be available) This input ignores the 'Fire position outputs' keyvalue and instead repurposes it to modify who the outputs' activator should be. If 'Fire position outputs' is enabled, the target will be used as the activator if it is available. If 'Fire position outputs' is disabled, the activator that fired GetPosition will be used instead.
Initiates a single measurement with the current settings, only firing OutPosition and OutAngles without moving anything. (it doesn't need a target to be available) This input ignores the 'Fire position outputs' keyvalue and instead repurposes it to modify who the outputs' activator should be. If 'Fire position outputs' is enabled, the target will be used as the activator if it is available. If 'Fire position outputs' is disabled, the activator that fired GetPosition will be used instead.
Outputs
- OutPosition
<vector>
Outputs the resulting position when allowed.
Outputs the resulting position when allowed.
- OutAngles
<vector>
Outputs the resulting angles when allowed.
Outputs the resulting angles when allowed.
