Jump to content
gc8

Get all door selections

Recommended Posts

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×