From 23b9e46543372982f935dec113f3272d4f732c3d Mon Sep 17 00:00:00 2001 From: Ghostrider-GRG- Date: Sun, 29 Jul 2018 19:45:20 -0400 Subject: [PATCH] Updated conditions for actions on asets Actions now appear only when players are close and asset is alive. --- MPMissions/Exile.Altis/debug/blckClient.sqf | 10 ++++++---- MPMissions/epoch.Altis/debug/blckClient.sqf | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/MPMissions/Exile.Altis/debug/blckClient.sqf b/MPMissions/Exile.Altis/debug/blckClient.sqf index c7a1a07..856b475 100644 --- a/MPMissions/Exile.Altis/debug/blckClient.sqf +++ b/MPMissions/Exile.Altis/debug/blckClient.sqf @@ -55,8 +55,7 @@ GMS_fnc_addHostageActions = { private _hostage = _this; - //private _handle = _hostage addAction ["Free Hostage",{_this call GMS_fnc_freeHostage}]; //,[],1,showWindow,hideOnUse,(alive _hostage)]; - private _handle = _hostage addAction ["Free Hostage",{_this call GMS_fnc_freeHostage},[],1,showWindow,hideOnUse]; //,"",{alive _target}]; //,"", (alive _target)]; + private _handle = _hostage addAction ["Free Hostage",{_this call GMS_fnc_freeHostage},[],1,showWindow,hideOnUse, "","alive _target", 3]; }; GMS_fnc_addAssetAnimations = { @@ -110,7 +109,7 @@ GMS_fnc_addLeaderActions = { private _leader = _this; - private _handle = _leader addAction ["Under Arrest",{_this call GMS_fnc_arrestLeader},[],1,showWindow,hideOnUse]; //,"",{alive _target}]; //,"", (alive _target)]; + private _handle = _leader addAction ["Capture",{_this call GMS_fnc_arrestLeader},[],1,showWindow,hideOnUse, "","alive _target", 3]; }; GMS_fnc_initLeader = { @@ -120,6 +119,9 @@ diag_log format["_fnc_initLeader: Leader %1 initialized",_leader]; }; + GMS_fnc_clearAllActions = { + removeAllActions (_this select 0); + }; if !(isServer) then { //diag_log "[blckeagls] initializing client variables"; @@ -335,6 +337,6 @@ if !(isServer) then }; }; - diag_log "blck client loaded ver 4/2/18 for Version 6.81 8 PM"; + diag_log "blck client loaded ver 7/29/18 for Version 6.84 8 PM"; }; \ No newline at end of file diff --git a/MPMissions/epoch.Altis/debug/blckClient.sqf b/MPMissions/epoch.Altis/debug/blckClient.sqf index c7a1a07..856b475 100644 --- a/MPMissions/epoch.Altis/debug/blckClient.sqf +++ b/MPMissions/epoch.Altis/debug/blckClient.sqf @@ -55,8 +55,7 @@ GMS_fnc_addHostageActions = { private _hostage = _this; - //private _handle = _hostage addAction ["Free Hostage",{_this call GMS_fnc_freeHostage}]; //,[],1,showWindow,hideOnUse,(alive _hostage)]; - private _handle = _hostage addAction ["Free Hostage",{_this call GMS_fnc_freeHostage},[],1,showWindow,hideOnUse]; //,"",{alive _target}]; //,"", (alive _target)]; + private _handle = _hostage addAction ["Free Hostage",{_this call GMS_fnc_freeHostage},[],1,showWindow,hideOnUse, "","alive _target", 3]; }; GMS_fnc_addAssetAnimations = { @@ -110,7 +109,7 @@ GMS_fnc_addLeaderActions = { private _leader = _this; - private _handle = _leader addAction ["Under Arrest",{_this call GMS_fnc_arrestLeader},[],1,showWindow,hideOnUse]; //,"",{alive _target}]; //,"", (alive _target)]; + private _handle = _leader addAction ["Capture",{_this call GMS_fnc_arrestLeader},[],1,showWindow,hideOnUse, "","alive _target", 3]; }; GMS_fnc_initLeader = { @@ -120,6 +119,9 @@ diag_log format["_fnc_initLeader: Leader %1 initialized",_leader]; }; + GMS_fnc_clearAllActions = { + removeAllActions (_this select 0); + }; if !(isServer) then { //diag_log "[blckeagls] initializing client variables"; @@ -335,6 +337,6 @@ if !(isServer) then }; }; - diag_log "blck client loaded ver 4/2/18 for Version 6.81 8 PM"; + diag_log "blck client loaded ver 7/29/18 for Version 6.84 8 PM"; }; \ No newline at end of file