Logic mirror movement: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(TODO)
(Updated this horrendously out of date page)
Line 1: Line 1:
{{todo|Is this a base engine point entity? if so, add [[Template:Base point]].}}
'''logic_mirror_movement''' is a [[point entity]] available in SDK 2013 code.
 
{{bug|Valve forgot to add the server/logic_mirror_movement.cpp file to the [[VPC]]! Hence it is unavailable in every game, unless you add this .cpp file in your own mod's [[VPC]]. There is also no [[FGD]] definition available, one is written below instead.}}
===FGD Code===
<pre>@PointClass base(Targetname, Parentname = logic_mirror_movement :
"An entity that can mirror entity movement to another entity."
[
m_target(target_destination)            : "Target entity"          :  : "Target entity."
m_strMirrorTarget(target_destination)  : "Mirror Target entity"  :  : "Mirror target entity."
m_strRemoteTarget(target_destination)  : "Remote Target entity"  :  : "Remote target entity."
m_strMirrorRelative(target_destination) : "Mirror Relative entity" :  : "Mirror relative entity."
input SetMirrorTarget(string) : "Set the Mirror Target entity."
input SetTarget(string) : "Set the Target entity."
input SetRemoteTarget(string) : "Set the Remove Target entity."
input SetMirrorRelative(string) : "Set the Mirror Relative entity."
]</pre>
==Entity Description==
==Entity Description==
Mirror entity movement to another entity
Mirror entity movement to another entity.
 
==Keyvalues==
==Keyvalues==
* {{KV Targetname}}
* {{KV Targetname}}
Line 24: Line 41:
==Outputs==
==Outputs==
* {{O Targetname}}
* {{O Targetname}}
[[Category:Half-Life 2: Episode One Entities]]
[[Category:Source Base Entities]]
[[Category:Point Entities]]
[[Category:Entities]]

Revision as of 04:15, 29 August 2019

logic_mirror_movement is a point entity available in SDK 2013 code.

Icon-Bug.pngBug:Valve forgot to add the server/logic_mirror_movement.cpp file to the VPC! Hence it is unavailable in every game, unless you add this .cpp file in your own mod's VPC. There is also no FGD definition available, one is written below instead.  [todo tested in ?]

FGD Code

@PointClass base(Targetname, Parentname = logic_mirror_movement :
	"An entity that can mirror entity movement to another entity."
[
	m_target(target_destination)            : "Target entity"          :  : "Target entity."
	m_strMirrorTarget(target_destination)   : "Mirror Target entity"   :  : "Mirror target entity."
	m_strRemoteTarget(target_destination)   : "Remote Target entity"   :  : "Remote target entity."
	m_strMirrorRelative(target_destination) : "Mirror Relative entity" :  : "Mirror relative entity."
	
	input SetMirrorTarget(string) : "Set the Mirror Target entity."
	input SetTarget(string) : "Set the Target entity."
	input SetRemoteTarget(string) : "Set the Remove Target entity."
	input SetMirrorRelative(string) : "Set the Mirror Relative entity."
]

Entity Description

Mirror entity movement to another entity.

Keyvalues

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

  • Target
<target_destination> Target
  • MirrorTarget
<target_destination> Mirror target entity
  • RemoteTarget
<target_destination> Remote target entity
  • MirrorRelative
<target_destination> Mirror relative entity

Inputs

  • SetMirrorTarget <target_destination>
Set MirrorTarget
  • SetTarget <target_destination>
Set Target
  • SetRemoteTarget <target_destination>
Set RemoteTarget
  • SetMirrorRelative <target_destination>
Set MirrorRelative

Outputs