mirror of
https://github.com/ravmustang/A3_R3F_LOG_Epoch.git
synced 2024-08-30 16:32:11 +00:00
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
|
/**
|
|||
|
* D<>termine si un objet est verrouill<6C> ou non pour un joueur donn<6E>
|
|||
|
*
|
|||
|
* @param 0 l'objet pour lequel savoir s'il est verrouill<6C>
|
|||
|
* @param 1 l'unit<69> pour laquelle savoir si l'objet est verrouill<6C>
|
|||
|
*
|
|||
|
* @return true si l'objet est verrouill<6C>, false sinon
|
|||
|
*
|
|||
|
* Copyright (C) 2014 Team ~R3F~
|
|||
|
*
|
|||
|
* This program is free software under the terms of the GNU General Public License version 3.
|
|||
|
* You should have received a copy of the GNU General Public License
|
|||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
*/
|
|||
|
|
|||
|
private ["_objet", "_unite", "_objet_verrouille"];
|
|||
|
|
|||
|
_objet = _this select 0;
|
|||
|
_unite = _this select 1;
|
|||
|
|
|||
|
_objet_verrouille = switch (R3F_LOG_CFG_lock_objects_mode) do
|
|||
|
{
|
|||
|
case "side": {_objet getVariable ["R3F_LOG_proprietaire_verrou", side group _unite] != side group _unite};
|
|||
|
case "faction": {_objet getVariable ["R3F_LOG_proprietaire_verrou", faction _unite] != faction _unite};
|
|||
|
case "player": {_objet getVariable ["R3F_LOG_proprietaire_verrou", name _unite] != name _unite};
|
|||
|
case "unit": {_objet getVariable ["R3F_LOG_proprietaire_verrou", _unite] != _unite};
|
|||
|
default {false};
|
|||
|
};
|
|||
|
|
|||
|
_objet_verrouille
|