Merge pull request #3870 from acemod/fixMagRepackInVehicle

Fix goKneeling changing animation inside vehicle (1.60)
This commit is contained in:
commy2 2016-06-04 22:54:47 +02:00
commit f8474a379c

View File

@ -1,6 +1,6 @@
/*
* Author: commy2
* Move unit to kneeling position.
* Move unit to kneeling position (only if not yet prone).
*
* Arguments:
* 0: Unit <OBJECT>
@ -14,7 +14,8 @@
params ["_unit"];
if (stance _unit == "PRONE") exitWith {};
// Animation changes even inside vehicle post-1.60
if (stance _unit == "PRONE" || {vehicle ACE_player != ACE_player}) exitWith {};
[
_unit,