mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
5e396a3793
This reverts commit 4d1a5194ea
.
25 lines
447 B
Plaintext
25 lines
447 B
Plaintext
/*
|
|
* Author: Dslyecxi, MikeMatrix
|
|
* Assign readable client ID to unit on the server.
|
|
*
|
|
* Arguments:
|
|
* 0: Unit name <STRING>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* ["MikeMatrix"] call ace_map_gestures_fnc_assignClientIDOnServer
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unitName"];
|
|
|
|
{
|
|
if (name _x == _unitName) exitWith {
|
|
_x setVariable [QGVAR(owner_id), owner _x, true];
|
|
};
|
|
} count playableUnits;
|