Sarge-AI/sarge/UPSMON/COMMON/UPSMON_closedoor.sqf
Teh Dango 7067ad9b0a 2.2.3
Check the change log for details
2016-08-18 22:58:49 -04:00

11 lines
371 B
Plaintext

private ["_bld"];
_bld = _this select 0;
_nbrdoors = round (count ((configfile >> "cfgVehicles" >> (typeOf _bld) >> "UserActions") call bis_fnc_returnchildren))/2;
sleep 20;
for "_i" from 0 to _nbrdoors do
{
[_bld, "door_" + str _i + "_rot", "Door_Handle_" + str _i + "_rot_1", "Door_Handle_" + str _i + "_rot_2"] execVM "\A3\Structures_F\scripts\Door_close.sqf";
};