Updated conditions for actions on asets

Actions now appear only when players are close and asset is alive.
This commit is contained in:
Ghostrider-GRG- 2018-07-29 19:45:20 -04:00
parent 8ec6d7f8dc
commit 23b9e46543
2 changed files with 12 additions and 8 deletions

View File

@ -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";
};

View File

@ -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";
};