mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
init drag/carry options on persons
This commit is contained in:
parent
bdc60c074a
commit
43846970fa
@ -13,6 +13,11 @@ class Extended_PostInit_EventHandlers {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class Extended_Init_EventHandlers {
|
class Extended_Init_EventHandlers {
|
||||||
|
class CAManBase {
|
||||||
|
class ADDON {
|
||||||
|
init = QUOTE(_this call DFUNC(initPerson));
|
||||||
|
};
|
||||||
|
};
|
||||||
class StaticWeapon {
|
class StaticWeapon {
|
||||||
class ADDON {
|
class ADDON {
|
||||||
init = QUOTE(_this call DFUNC(initObject));
|
init = QUOTE(_this call DFUNC(initObject));
|
||||||
|
@ -19,6 +19,7 @@ PREP(handlePlayerChanged);
|
|||||||
PREP(handlePlayerWeaponChanged);
|
PREP(handlePlayerWeaponChanged);
|
||||||
PREP(handleScrollWheel);
|
PREP(handleScrollWheel);
|
||||||
PREP(initObject);
|
PREP(initObject);
|
||||||
|
PREP(initPerson);
|
||||||
PREP(isObjectOnObject);
|
PREP(isObjectOnObject);
|
||||||
PREP(setCarryable);
|
PREP(setCarryable);
|
||||||
PREP(setDraggable);
|
PREP(setDraggable);
|
||||||
|
19
addons/dragging/functions/fnc_initPerson.sqf
Normal file
19
addons/dragging/functions/fnc_initPerson.sqf
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Author: commy2
|
||||||
|
*
|
||||||
|
* Initialize variables for drag or carryable persons. Called from init EH.
|
||||||
|
*
|
||||||
|
* Argument:
|
||||||
|
* 0: Any Unit (Object)
|
||||||
|
*
|
||||||
|
* Return value:
|
||||||
|
* NONE.
|
||||||
|
*/
|
||||||
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
private "_unit";
|
||||||
|
|
||||||
|
_unit = _this select 0;
|
||||||
|
|
||||||
|
[_unit, true/*, _position, _direction*/] call FUNC(setDraggable);
|
||||||
|
[_unit, true/*, _position, _direction*/] call FUNC(setCarryable);
|
Loading…
Reference in New Issue
Block a user