mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Disable Debug Laser / Commenting
This commit is contained in:
parent
4d62865ea2
commit
47c72ac4ae
@ -11,16 +11,15 @@
|
||||
* Nothing
|
||||
*
|
||||
* Example:
|
||||
* Nothing
|
||||
* [bob, bob, ["light"]] call ace_attach_fnc_attach;
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
PARAMS_3(_attachToVehicle,_unit,_args);
|
||||
|
||||
private ["_itemClassname", "_itemVehClass", "_onAtachText", "_selfAttachPosition", "_attachedItem", "_tempObject", "_actionID"];
|
||||
|
||||
PARAMS_3(_attachToVehicle,_unit,_args);
|
||||
_itemClassname = [_args, 0, ""] call CBA_fnc_defaultParam;
|
||||
|
||||
//Sanity Check (_unit has item in inventory, not over attach limit)
|
||||
|
@ -8,10 +8,10 @@
|
||||
* 2: Array empty or containing a string of the attachable item <ARRAY>
|
||||
*
|
||||
* Return Value:
|
||||
* Boolean <BOOL>
|
||||
* Can Attach <BOOL>
|
||||
*
|
||||
* Example:
|
||||
* Nothing
|
||||
* [bob, bob, ["light"]] call ace_attach_fnc_canAttach;
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
@ -7,10 +7,10 @@
|
||||
* 1: unit doing the detaching (player) <OBJECT>
|
||||
*
|
||||
* Return Value:
|
||||
* Boolean <BOOL>
|
||||
* Can Detach <BOOL>
|
||||
*
|
||||
* Example:
|
||||
* Nothing
|
||||
* [bob, bob] call ace_attach_fnc_canDetach;
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
@ -8,13 +8,18 @@
|
||||
* This is VERY computationaly intensive, but doesn't happen that often.
|
||||
*
|
||||
* Arguments:
|
||||
* Nothing
|
||||
* 0: Unit (player) <OBJECT>
|
||||
* 1: attachToVehicle <OBJECT>
|
||||
* 2: Item Classname (cfgWeapon/cfgMagazine) <STRING>
|
||||
* 3: Light Vehicle Classname <STRING>
|
||||
* 4: On Attach Text <STRING>
|
||||
* 5: Starting Pos of dummy item <ARRAY>
|
||||
*
|
||||
* Return Value:
|
||||
* Nothing
|
||||
*
|
||||
* Example:
|
||||
* Nothing
|
||||
* No
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
@ -52,7 +57,7 @@ while {(_closeInMax - _closeInMin) > 0.01} do {
|
||||
_endASL = if (surfaceIsWater _startingPosShifted) then {_endPosShifted} else {ATLtoASL _endPosShifted};
|
||||
|
||||
//Uncomment to see the lazor show, and see how the scanning works:
|
||||
drawLine3D [_startingPosShifted, _endPosShifted, [1,0,0,1]];
|
||||
// drawLine3D [_startingPosShifted, _endPosShifted, [1,0,0,1]];
|
||||
if (_attachToVehicle in lineIntersectsWith [_startASL, _endASL, _unit]) exitWith {_doesIntersect = true};
|
||||
} forEach [[0,0,0.045], [0,0,-0.045], [0,0.045,0], [0,-0.045,0], [0.045,0,0], [-0.045,0,0]];
|
||||
} forEach [[0,0,0], [0,0,0.05], [0,0,-0.05]];
|
||||
|
Loading…
Reference in New Issue
Block a user