Comp kv setter: Difference between revisions
Jump to navigation
Jump to search
Note:These outputs seem to be a mistake, as there are no FireUser inputs. Using these will have no effect.
Kittymatthew (talk | contribs) (Created page with "{{point ent|comp_kv_setter|game=TeamSpen's Hammer Addons|internal=1}} It is also available in {{P2CE}}Portal 2: Community Edition. It sets a keyvalue on an entity to a new...") |
Kittymatthew (talk | contribs) m (moved note) |
||
Line 21: | Line 21: | ||
==Outputs== | ==Outputs== | ||
{{IO|OnUser(1-4)|Fired in response to FireUser(1-4) input.}} | |||
{{note|These outputs seem to be a mistake, as there are no FireUser inputs. Using these will have no effect.}} | {{note|These outputs seem to be a mistake, as there are no FireUser inputs. Using these will have no effect.}} | ||
==See Also== | ==See Also== | ||
* [[TeamSpen's Hammer Addons]] | * [[TeamSpen's Hammer Addons]] |
Revision as of 13:26, 10 May 2021
Template:Point ent It is also available in Portal 2: Community Edition. It sets a keyvalue on an entity to a new value. This can be used in cases to compute spawnflags, or to adjust keyvalues when the target entity's options cannot be set to a fixup variable.
KeyValues
- Pitch Yaw Roll (Y Z X) ([todo internal name (i)]) <angle>
- This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
- Target Entity ([todo internal name (i)]) <targetname>
- The name of the entity or entities to set values on.
- Mode ([todo internal name (i)]) <choices>
- The type of value to set
- kv: KeyValues
- flags: SpawnFlags
- Name / Mask ([todo internal name (i)]) <string>
- The name of the keyvalue to set, or the bits to change for spawnflags.
- Value - Ent Name ([todo internal name (i)]) <targetname>
- If set, use this fixed-up entity name.
- Invert Value ([todo internal name (i)]) <choices>
- If enabled, invert the value so 0 and 1 are swapped.
- 0: No
- 1: Yes
- Rotate Value ([todo internal name (i)]) <choices>
- If enabled, treat the value as a vector and rotate it by the angles set on this entity first.
- 0: No
- 1: Yes
- Convert To Angle ([todo internal name (i)]) <choices>
- If enabled, convert a +X axis normal back into the Euler angle.
- 0: No
- 1: Yes
Outputs
- OnUser(1-4)
- Fired in response to FireUser(1-4) input.
