Calculate limited curator camera max height from terrain height
This commit is contained in:
parent
363876a7e5
commit
66f5d1f9a5
|
@ -4,7 +4,7 @@
|
|||
File: fn_virtual_curatorAreaLimit.sqf
|
||||
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
|
||||
Date: 2018-11-25
|
||||
Last Update: 2019-04-23
|
||||
Last Update: 2019-04-29
|
||||
License: GNU General Public License v3.0 - https://www.gnu.org/licenses/gpl-3.0.html
|
||||
Public: No
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
|||
|
||||
Parameter(s):
|
||||
_curator - Curator logic [OBJECT, defaults to nil]
|
||||
_position - Center position of area [POSITION, defaults to nil]
|
||||
_position - Center position of area [POSITION ATL, defaults to nil]
|
||||
_radius - Area radius [OBJECT, defaults to KPLIB_param_limitedZeusRadius]
|
||||
_ceiling - Area ceiling [OBJECT, defaults to KPLIB_param_limitedZeusCeiling]
|
||||
|
||||
|
@ -28,6 +28,6 @@ params [
|
|||
];
|
||||
|
||||
[_curator, [1, _position, _radius]] remoteExec ["addCuratorCameraArea", 2];
|
||||
[_curator, _ceiling] remoteExec ["setCuratorCameraAreaCeiling", 2];
|
||||
[_curator, (_position select 2) + _ceiling] remoteExec ["setCuratorCameraAreaCeiling", 2];
|
||||
|
||||
true
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
File: fn_virtual_preInit.sqf
|
||||
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
|
||||
Date: 2018-11-18
|
||||
Last Update: 2019-04-23
|
||||
Last Update: 2019-04-29
|
||||
License: GNU General Public License v3.0 - https://www.gnu.org/licenses/gpl-3.0.html
|
||||
Public: No
|
||||
|
||||
|
@ -71,7 +71,7 @@ if (hasInterface) then {
|
|||
switch (_curator getVariable ["KPLIB_mode", 0]) do {
|
||||
// Limited mode
|
||||
case 1: {
|
||||
[_curator, getPos player] call KPLIB_fnc_virtual_curatorAreaLimit;
|
||||
[_curator, getPosATL player] call KPLIB_fnc_virtual_curatorAreaLimit;
|
||||
};
|
||||
};
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
|
Loading…
Reference in New Issue