mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
remove old, not working functions
This commit is contained in:
parent
1b96caedc0
commit
1fd2fcafb0
@ -19,7 +19,6 @@ PREP(binarizeNumber);
|
||||
PREP(blurScreen);
|
||||
PREP(cachedCall);
|
||||
PREP(canGetInPosition);
|
||||
PREP(canInteract);
|
||||
PREP(canInteractWith);
|
||||
PREP(canUseWeapon);
|
||||
PREP(changeProjectileDirection);
|
||||
@ -160,7 +159,6 @@ PREP(sanitizeString);
|
||||
PREP(sendRequest);
|
||||
PREP(serverLog);
|
||||
PREP(setArrestState);
|
||||
PREP(setCanInteract);
|
||||
PREP(setCaptivityStatus);
|
||||
PREP(setDefinedVariable);
|
||||
PREP(setDisableUserInputStatus);
|
||||
|
@ -1,19 +0,0 @@
|
||||
/*
|
||||
* Author: Glowbal
|
||||
* Check if unit can interact with enviroment. Unit has to be awake and not be in arrested state.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Unit that try to Interact <OBJECT>
|
||||
*
|
||||
* Return Value:
|
||||
* Can interact with enviroment <BOOL>
|
||||
*
|
||||
* Public: No
|
||||
*
|
||||
* Deprecated
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
params ["_unit"];
|
||||
|
||||
(_unit getvariable [QGVAR(canInteract),0]) < 1 && [_unit] call FUNC(isAwake) && !([_unit] call FUNC(isArrested))
|
@ -1,30 +0,0 @@
|
||||
/**
|
||||
* fn_setCanInteract.sqf
|
||||
* @Descr: N/A
|
||||
* @Author: Glowbal
|
||||
*
|
||||
* @Arguments: []
|
||||
* @Return:
|
||||
* @PublicAPI: false
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_unit","_to","_return"];
|
||||
|
||||
_unit = [_this, 0, objNull, [objNull]] call BIS_fnc_param;
|
||||
_to = _this select 1;
|
||||
_return = false;
|
||||
|
||||
if (((typeName _to) == "SCALAR")) then {
|
||||
if (_to <-1) then {
|
||||
_to = -1;
|
||||
} else {
|
||||
if (_to > 1) then {
|
||||
_to = 1;
|
||||
};
|
||||
};
|
||||
_unit setvariable [QGVAR(canInteract), ([_unit] call FUNC(getCanInteract)) + _to,false];
|
||||
_return = true;
|
||||
};
|
||||
_return
|
Loading…
Reference in New Issue
Block a user