gc8 977 Posted July 11, 2018 Hi does anyone know a sure way to get all door selectios in building? I have used this code below but sometimes not all doors are include like balcony door or outer door. _num = getNumber (configfile >> "CfgVehicles" >> typeOf _bldg >> "numberOfDoors"); for "_i" from 0 to (_num-1) do { _selection = format["Door_%1", _i]; }; _num covers most doors but not all Share this post Link to post Share on other sites
gc8 977 Posted July 11, 2018 Ah nevermind. just when I posted this I realized the door indexes start from 1 not 0. So I think I got it working now. :) Share this post Link to post Share on other sites
POLPOX 779 Posted July 11, 2018 In case of numberOfDoors not set correctly, animationNames might helps you. 1 Share this post Link to post Share on other sites