Logic collision pair (Source 2): Difference between revisions
Jump to navigation
Jump to search
(Create source 2 logic_collision_pair page) |
No edit summary |
||
Line 1: | Line 1: | ||
{{tabs|main=source|source=1|source2=1|logic_collision_pair}} | {{tabs|main=source|source=1|source2=1|logic_collision_pair}} | ||
{{this is a|point entity|name=logic_collision_pair|engine=Source 2}} It can be used to enable/disable [[VPhysics]] collisions between two target entities. | {{this is a|point entity|name=logic_collision_pair|engine=Source 2}} It can be used to enable/disable [[VPhysics]] collisions between two target entities. | ||
Line 12: | Line 11: | ||
== Inputs == | == Inputs == | ||
{{ | {{I|EnableCollisions|Enable collisions between the first and second entity.}} | ||
{{ | {{I|DisableCollisions|Disable collisions between the first and second entity.}} | ||
{{ | {{I|DisableCollisionsWith|Disable collisions between the first entity and use the parameter to find the second entity.}} | ||
Latest revision as of 11:09, 26 September 2024
logic_collision_pair
is a point entity available in all Source 2 games. It can be used to enable/disable VPhysics collisions between two target entities.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Attachment 1 (attach1) <targetname>
- The first entity.
- Attachment 2 (attach2) <targetname>
- The second entity.
Note:These targetnames are evaluated at enable time. !activator and !caller are not accepted.
- Support multiple entities with same name (support_multiple_entities_with_same_name) <boolean>
- If true, we affect all entities matching our attachment names. If false, we only affect the first entity found matching each attachment name.
- Start with collisions disabled (StartDisabled) <boolean>
- If Yes, starts with collisions between the pair disabled. If No, starts with collisions between the pair enabled.
Inputs
- EnableCollisions
- Enable collisions between the first and second entity.
- DisableCollisions
- Disable collisions between the first and second entity.
- DisableCollisionsWith
- Disable collisions between the first entity and use the parameter to find the second entity.