21 lines
534 B
Plaintext
21 lines
534 B
Plaintext
/*
|
|
f_kp_crate_checkValue.sqf
|
|
Author: Wyqer
|
|
Website: www.killahpotatoes.de
|
|
Date: 2017-05-26
|
|
|
|
Description:
|
|
Checks content of given crate, checks if ropeAttach is enabled on the crate and if not set it to true.
|
|
|
|
Parameters:
|
|
_this select 0 - Object - Crate
|
|
*/
|
|
|
|
if (isDedicated) exitWith {};
|
|
|
|
hint format [localize "STR_ACTION_CRATE_VALUE_HINT", (_this select 0) getVariable ["KP_liberation_crate_value",0]];
|
|
|
|
if (!(ropeAttachEnabled (_this select 0))) then {
|
|
[(_this select 0), true] remoteExec ["enableRopeAttach",(_this select 0)];
|
|
};
|