Setting Array fdor client

Hello all,
Is this the correct way of setting an array for the client or will it think its for the server ? Basically the teams are set it loops through all the actors with the same team and adds them to the array.

S