Logic measure movement: Difference between revisions

From Valve Developer Community
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.


==Entity Values==
* Useful for simulating motion outside of the hierarchy system.
===Keys===


* '''Name''' ''targetname <target_source>''
==Keyvalues==
** The name that other entities refer to this entity by.
* '''Entity to Measure''' ''MeasureTarget <target_destination>''
** Entity whose movement you want to measure.
* '''Measure Reference''' ''MeasureReference <target_destination>''
** The movement of Entity to Measure will be measured relative to this entity.
* '''Entity to Move''' ''Target <target_destination>''
** This entity will be moved to mimic the motions of Entity to Measure.
* '''Movement Reference''' ''TargetReference <target_destination>''
** The Entity to Move will move relative to this entity.
* '''Movement scale''' ''TargetScale <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''' ''MeasureType <choices>''
** What to measure.  If '''Position''', measures the entity's linear movement; if '''Eye Position''', measures the entity's angular movement.


* {{kv targetname}}


===Inputs===
* '''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}}


* '''Kill'''
** Removes this entity from the world.
* '''KillHierarchy''' 
** Removes this entity and all its children from the world.
* '''AddOutput''' ''<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>''
** Adds an entity I/O connection to this entity. Very dangerous, use with care
* '''FireUser1'''
** Causes this entity's OnUser1 output to be fired.
* '''FireUser2'''
** Causes this entity's OnUser2 output to be fired.
* '''FireUser3'''
** Causes this entity's OnUser3 output to be fired.
* '''FireUser4'''
** Causes this entity's OnUser4 output to be fired.
* '''SetMeasureTarget <string>'''
* '''SetMeasureTarget <string>'''
** Set the Entity to Measure, whose movement should be measured.
: Set the Entity to Measure, whose movement should be measured.
 
* '''SetMeasureReference <string>'''
* '''SetMeasureReference <string>'''
** Set the Measure Reference entity.
: Set the Measure Reference entity.
 
* '''Target <string>'''
* '''Target <string>'''
** 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.
 
* '''SetTargetReference <string>'''
* '''SetTargetReference <string>'''
** Set the Movement Reference entity.
: Set the Movement Reference entity.
 
* '''SetTargetScale <float>'''
* '''SetTargetScale <float>'''
** Set the scale to divide the measured movements by.
: Set the scale to divide the measured movements by.
 
* '''Enable'''
* '''Enable'''
** Enable the logic_measure_movement.
: Enable the logic_measure_movement.
 
* '''Disable'''
* '''Disable'''
** Disable the logic_measure_movement.
: Disable the logic_measure_movement.


==Outputs==


===Outputs===
* {{o targetname}}
 
* '''OnUser1'''
** Fired in response to FireUser1 input.
* '''OnUser2'''
** Fired in response to FireUser2 input.
* '''OnUser3'''
** Fired in response to FireUser3 input.
* '''OnUser4'''
** Fired in response to FireUser4 input.
 
 
==Additional Info==
* Useful for simulating motion outside of the hierarchy system.


[[Category:Entities]]
[[Category:Entities]]

Revision as of 20:44, 11 July 2005

Template:Wrongtitle

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.

Outputs