This article relates to the game "Portal 2." Click here for more information.

Comp kv setter: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (infotable)
(Multipage Template)
Line 7: Line 7:
|in={{teamspen|4}}
|in={{teamspen|4}}
}}
}}
{{this is a|name=comp_kv_setter|game=Portal 2: Community Edition|e1}} It is also available in all games with {{Teamspen|3.1}} installed. 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.
{{this is a|name=comp_kv_setter|game=Portal 2: Community Edition|e1}}  
 
{{Multipage}}
==KeyValues==
{{KV|Pitch Yaw Roll (Y Z X)|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.}}
{{KV|Target Entity|target_destination|The name of the entity or entities to set values on.}}
{{KV|Mode|choices|The type of value to set}}
:*kv: KeyValues
:*flags: SpawnFlags
{{KV|Name / Mask|string|The name of the keyvalue to set, or the bits to change for spawnflags.}}
{{KV|Value - String|string|The value to apply.}}
{{KV|Value - Ent Name|target_destination|If set, use this fixed-up entity name.}}
{{KV|Invert Value|choices|If enabled, invert the value so 0 and 1 are swapped.}}
:*0: No
:*1: Yes
{{KV|Rotate Value|choices|If enabled, treat the value as a vector and rotate it by the angles set on this entity first.}}
:*0: No
:*1: Yes
{{KV|Convert To Angle|choices|If enabled, convert a +X axis normal back into the Euler angle.}}
:*0: No
:*1: Yes
 
==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.}}
 
==See Also==
* [[TeamSpen's Hammer Addons]]

Revision as of 09:03, 19 December 2023

comp_kv_setter
Comp kv setter.png
TypeInternal Point entity
EngineSource Source
AvailabilityTeamSpen's Hammer Addons TeamSpen's Hammer Addons
 

comp_kv_setter is an e1 available in Portal 2: Community Edition Portal 2: Community Edition. Template:Multipage