mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #1314 from acemod/Explosives_PlacementAnimation
Changed the animation from medic to put when placing an explosive.
This commit is contained in:
commit
4d3521cff4
@ -25,6 +25,8 @@ private ["_ammo", "_explosive", "_attachedTo", "_expPos", "_magazineTrigger"];
|
||||
EXPLODE_6_PVT(_this,_unit,_pos,_dir,_magazineClass,_triggerConfig,_triggerSpecificVars);
|
||||
DEFAULT_PARAM(6,_setupPlaceholderObject,objNull);
|
||||
|
||||
_unit playActionNow "PutDown";
|
||||
|
||||
_attachedTo = objNull;
|
||||
if (!isNull _setupPlaceholderObject) then {
|
||||
_attachedTo = attachedTo _setupPlaceholderObject;
|
||||
|
@ -42,5 +42,5 @@ _player setVariable [QGVAR(PlantingExplosive), true];
|
||||
[{_this setVariable [QGVAR(PlantingExplosive), false]}, _player, 1.5, 0.5] call EFUNC(common,waitAndExecute);
|
||||
_setup addEventHandler ["EpeContactStart", FUNC(onLanded)];
|
||||
_setup enableSimulationGlobal true;
|
||||
_player playActionNow "MedicOther";
|
||||
_player playActionNow "PutDown";
|
||||
_player removeMagazine (_setup getVariable [QGVAR(Class), ""]);
|
||||
|
Loading…
Reference in New Issue
Block a user