#include "..\script_component.hpp" /* * Author: IDSolutions * Gets a player object by UID. * * Arguments: * 0: Player UID * * Return Value: * Player object or objNull if not found * * Example: * ["76561198012345678"] call forge_client_common_fnc_getPlayer * * Public: Yes */ params ["_uid"]; private _player = objNull; { if ((getPlayerUID _x) isEqualTo _uid) exitWith { _player = _x; }; } forEach allPlayers; _player