Undeceived 392 Posted February 15, 2016 Hi guys, I created some markers - 300 to be exact (m_1, m_2, m_3, up to m_300) :D and now I want to create an object (the same object) at everyone of them. It should work with the command for "_i" from 0 to 300 do {}; but I have no idea how to script it right. Can anyone help? Much appreciated. Share this post Link to post Share on other sites
jshock 513 Posted February 15, 2016 Yea something like: for "_i" from 1 to 300 step 1 do { _pos = getMarkerPos format ["m_%1",_i]; //createVehicle on _pos }; Share this post Link to post Share on other sites
Undeceived 392 Posted February 16, 2016 Thanks, mate! That worked like a sharm. _streetlighttype = ["Land_LampStreet_F", "Land_LampShabby_F", "Land_LampShabby_F"] call BIS_fnc_selectRandom; for "_i" from 1 to 300 step 1 do { _pos = getMarkerPos format ["m_%1",_i]; streetlights = _streetlighttype createVehicleLocal _pos; }; Should result in a well lit city, viewed from the distance, but unfortunately the light fades out over the distance... But your script worked well. Thanks! Share this post Link to post Share on other sites