Logic measure movement: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Compare to)
Line 2: Line 2:


{{note|Useful for simulating motion outside of the hierarchy system. }}
{{note|Useful for simulating motion outside of the hierarchy system. }}
 
Compare with [[phys_constraint]].
{{warning|Does not properly update collision physics on the object being moved. }}
{{warning|Does not properly update collision physics on the object being moved. }}



Revision as of 06:43, 8 September 2011

Template:Base point It can measure the movement of an entity relative to another entity and apply that movement to a third entity.

Note.pngNote:Useful for simulating motion outside of the hierarchy system.

Compare with phys_constraint.

Warning.pngWarning:Does not properly update collision physics on the object being moved.

Keyvalues

Entity to Measure ([todo internal name (i)]) <targetname>
Entity whose movement you want to measure.
Measure Reference ([todo internal name (i)]) <targetname>
The movement of Entity to Measure will be measured relative to this entity.
Entity to Move ([todo internal name (i)]) <targetname>
This entity will be moved to mimic the motions of Entity to Measure.
Movement Reference ([todo internal name (i)]) <targetname>
The Entity to Move will move relative to this entity.
Movement scale ([todo internal name (i)]) <float>
A scale to divide the measured movements by, before applying those movements to the Entity to Move.
1 = target entity moves as much as the measured entity,
2 = target entity moves half as far as the measured entity, and
0.5 = target entity moves twice as far as the measured entity.
Measurement Type ([todo internal name (i)]) <choices>
What to measure.
  • 0 : Position
  • 1 : Eye position
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

SetMeasureTarget <stringRedirectInput/string>
Set the Entity to Measure, whose movement should be measured.
SetMeasureReference <stringRedirectInput/string>
Set the Measure Reference entity.
Target <stringRedirectInput/string>
Set the Entity to Move, which will be moved to mimic the measured entity.
SetTargetReference <stringRedirectInput/string>
Set the Movement Reference entity.
SetTargetScale <floatRedirectInput/float>
Set the scale to divide the measured movements by.
Enable
Enable the logic_measure_movement.
Disable
Disable the logic_measure_movement.


Outputs