Info lighting relative: Difference between revisions
Jump to navigation
Jump to search
m (Robot: fixing template case.) |
m (Robot: fixing template case.) |
||
Line 22: | Line 22: | ||
<!--no flags--> | <!--no flags--> | ||
==Inputs== | ==Inputs== | ||
* {{ | * {{I Targetname}} | ||
* {{I Parentname}} | * {{I Parentname}} | ||
==Outputs== | ==Outputs== | ||
* {{o targetname}} | * {{o targetname}} | ||
[[Category:Entities]] | [[Category:Entities]] |
Revision as of 19:37, 19 January 2009
Entity Description
This entity is used in d1_trainstation_01, inside the train car Gordon encounters G-Man.
It can be used on any model entity. Use the Template:Not in fgd LightingOriginHack keyvalue to set the entity's initial lighting origin and the Template:Not in fgd SetLightingOriginHack input to set a new lighting origin.
FGD Code
@PointClass base(Targetname, Parentname) iconsprite("editor/info_lighting.vmt") = info_lighting_relative [ LightingLandmark(target_destination) : "Lighting Landmark" : : "Entity at which the reference origin is contained. " + " If empty, the info_lighting_relative's origin will" + " be used." ]
Keyvalues
- Template:Kv targetname
- Template:Kv parentname
- LightingLandmark
- <target_destination> Entity at which the reference origin is contained. If empty, the info_lighting_relative's origin will be used.
Inputs
Parentname:
- SetParent <string >
- Move with this entity. See Entity Hierarchy (parenting).
- SetParentAttachment <string >
- Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
- SetParentAttachmentMaintainOffset <string >
- As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
- ClearParent
- Removes this entity from the the movement hierarchy, leaving it free to move independently.