Logic measure movement: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| m (Categoprozaced) | No edit summary | ||
| Line 6: | Line 6: | ||
| An entity that can measure the movement of an entity relative to another entity and apply that movement to a third entity. | An entity that can measure the movement of an entity relative to another entity and apply that movement to a third entity. | ||
| * Useful for simulating motion outside of the hierarchy system. | |||
| ==Keyvalues== | |||
| * {{kv targetname}} | |||
| * '''MeasureTarget''' | |||
| : <target_destination> Entity whose movement you want to measure. | |||
| * '''MeasureReference''' | |||
| : <target_destination> The movement of Entity to Measure will be measured relative to this entity. | |||
| * '''Target''' | |||
| : <target_destination> This entity will be moved to mimic the motions of Entity to Measure. | |||
| * '''TargetReference''' | |||
| : <target_destination> The Entity to Move will move relative to this entity. | |||
| * '''TargetScale''' | |||
| : <float> A scale to divide the measured movements by, before applying those movements to the Entity to Move. | |||
| * '''MeasureType''' | |||
| : <choices> What to measure. | |||
| {| | |||
| ! Literal Value || Description | |||
| |- | |||
| | 0 || Position (origin) | |||
| |- | |||
| | 1 || Eye position (angles) | |||
| |} | |||
| ==Inputs== | |||
| * {{i targetname}} | |||
| * '''SetMeasureTarget <string>''' | * '''SetMeasureTarget <string>''' | ||
| : Set the Entity to Measure, whose movement should be measured. | |||
| * '''SetMeasureReference <string>''' | * '''SetMeasureReference <string>''' | ||
| : Set the Measure Reference entity. | |||
| * '''Target <string>''' | * '''Target <string>''' | ||
| : Set the Entity to Move, which will be moved to mimic the measured entity. | |||
| * '''SetTargetReference <string>''' | * '''SetTargetReference <string>''' | ||
| : Set the Movement Reference entity. | |||
| * '''SetTargetScale <float>''' | * '''SetTargetScale <float>''' | ||
| : Set the scale to divide the measured movements by. | |||
| * '''Enable''' | * '''Enable''' | ||
| : Enable the logic_measure_movement. | |||
| * '''Disable''' | * '''Disable''' | ||
| : Disable the logic_measure_movement. | |||
| ==Outputs== | |||
| * {{o targetname}} | |||
| *  | |||
| [[Category:Entities]] | [[Category:Entities]] | ||
Revision as of 20:44, 11 July 2005
Entity Description
Entity Name: logic_measure_movement
An entity that can measure the movement of an entity relative to another entity and apply that movement to a third entity.
- Useful for simulating motion outside of the hierarchy system.
Keyvalues
- MeasureTarget
- <target_destination> Entity whose movement you want to measure.
- MeasureReference
- <target_destination> The movement of Entity to Measure will be measured relative to this entity.
- Target
- <target_destination> This entity will be moved to mimic the motions of Entity to Measure.
- TargetReference
- <target_destination> The Entity to Move will move relative to this entity.
- TargetScale
- <float> A scale to divide the measured movements by, before applying those movements to the Entity to Move.
- MeasureType
- <choices> What to measure.
| Literal Value | Description | 
|---|---|
| 0 | Position (origin) | 
| 1 | Eye position (angles) | 
Inputs
- SetMeasureTarget <string>
- Set the Entity to Measure, whose movement should be measured.
- SetMeasureReference <string>
- Set the Measure Reference entity.
- Target <string>
- Set the Entity to Move, which will be moved to mimic the measured entity.
- SetTargetReference <string>
- Set the Movement Reference entity.
- SetTargetScale <float>
- Set the scale to divide the measured movements by.
- Enable
- Enable the logic_measure_movement.
- Disable
- Disable the logic_measure_movement.