Workshop.codes
Create

Array Intersection Last updated September 01, 2025

Description

Returns an array containing only the elements that appear in both of two specified arrays. Duplicate values are not included more than once in the result. Useful for finding shared members between two player groups, matching tag sets, or evaluating overlap between two datasets.

Snippet

Array Intersection(Global.TeamAPlayers, Global.OnObjectivePlayers);

Properties

Returns: Array
Parameters: Array A, Array B

Array A
Type: Array, Default: Empty Array
The first array to compare.

Array B
Type: Array, Default: Empty Array
The second array to compare. Only elements also present in Array A are returned.

Workshop.codes