Ninja Posted April 6, 2012 Author Share Posted April 6, 2012 A Warning appears: WARNING: Loading script failed:...lua:50:'}' expected (to close '}' at line 2) near 'createObject' But in line 50 is no } Link to comment
drk Posted April 6, 2012 Share Posted April 6, 2012 I can't find nothing, check createObject. Link to comment
Ninja Posted April 6, 2012 Author Share Posted April 6, 2012 49. createObject ( 3437, 5214.099609375, 773.2998046875, 62.799999237061, 0, 90, 90) 50. createObject ( 3437, 5214.099609375, 785, 62.799999237061, 0, 90, 90); 51. createObject ( 3437, 5214.099609375, 796.7001953125, 62.799999237061, 0, 90, 90); Link to comment
Scripting Moderators Sarrum Posted April 6, 2012 Scripting Moderators Share Posted April 6, 2012 line 49: createObject ( 3437, 5214.099609375, 773.2998046875, 62.799999237061, 0, 90, 90); Link to comment
Ninja Posted April 6, 2012 Author Share Posted April 6, 2012 ok thx but no appears a Warning with: bad argument @'setelementcollisionenabled'? The objects are there but with collision... Link to comment
drk Posted April 6, 2012 Share Posted April 6, 2012 You used my last code? Or the first? See my posts. Link to comment
Ninja Posted April 6, 2012 Author Share Posted April 6, 2012 local tObjects = { createObject ( 3437, 5222.7998046875, 755.70001220703, 62.799999237061, 0, 90, 0 ); } for nIndex, uObject in pairs ( tObjects ) do setElementCollisionsEnabled ( nIndex, false ); end This one Link to comment
drk Posted April 6, 2012 Share Posted April 6, 2012 Yes and use debug please.If don't work try: local tObjects = { createObject ( 3437, 5222.7998046875, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5199.3999023438, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5234.4995117188, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5246.19921875, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5257.8989257813, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5269.5986328125, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5281.2978515625, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5292.998046875, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5304.697265625, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5187.69921875, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5175.9990234375, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5164.298828125, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5152.5986328125, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5140.8984375, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5129.1982421875, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5117.498046875, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.1000976563, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.1000976563, 758.69921875, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.1000976563, 761.69921875, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.1000976563, 764.69921875, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.1000976563, 767.69921875, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.099609375, 773.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 785, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 796.69921875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 808.3994140625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 820.099609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 831.7998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 843.5, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 855.19921875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 866.8994140625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 878.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 902, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 878.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 866.90234375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 855.2021484375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 843.501953125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 831.8017578125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 820.1005859375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 796.7001953125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 785, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 773.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 761.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 761.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 773.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 785, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 796.7001953125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 820.1005859375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 831.8017578125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 843.501953125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 855.2021484375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 866.90234375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 878.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5181.099609375, 761.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5184.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5187.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5190.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5193.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5229.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5232.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5235.095703125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5238.095703125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5241.095703125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5238.095703125, 773.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5235.095703125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5232.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5229.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5193.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5190.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5187.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5184.095703125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5235.095703125, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5232.0966796875, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5229.0966796875, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.09765625, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.09765625, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.095703125, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5193.095703125, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5232.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5229.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.0966796875,,796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.09375, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5193.09375, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5190.0908203125, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5193.091796875, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.091796875, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.095703125, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.095703125, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5229.0966796875, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.0947265625, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.0947265625, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.08984375, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.09375, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.09375, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 843.5078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 843.5078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 843.5078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.0927734375, 843.5078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 855.2021484375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 855.2021484375, 62.799999237061, 0, 90, 90); } for nIndex, uObject in pairs ( tObjects ) do setElementCollisionsEnabled ( nIndex, false ); end Link to comment
Ninja Posted April 6, 2012 Author Share Posted April 6, 2012 now it looks like this but still doeesn't work local tObjects = { createObject ( 3437, 5222.7998046875, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5199.3999023438, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5234.4995117188, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5246.19921875, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5257.8989257813, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5269.5986328125, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5281.2978515625, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5292.998046875, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5304.697265625, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5187.69921875, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5175.9990234375, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5164.298828125, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5152.5986328125, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5140.8984375, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5129.1982421875, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5117.498046875, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.1000976563, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.1000976563, 758.69921875, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.1000976563, 761.69921875, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.1000976563, 764.69921875, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.1000976563, 767.69921875, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.099609375, 773.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 785, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 796.69921875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 808.3994140625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 820.099609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 831.7998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 843.5, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 855.19921875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 866.8994140625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 878.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 902, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 878.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 866.90234375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 855.2021484375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 843.501953125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 831.8017578125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 820.1005859375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 796.7001953125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 785, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 773.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 761.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 761.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 773.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 785, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 796.7001953125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 820.1005859375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 831.8017578125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 843.501953125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 855.2021484375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 866.90234375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 878.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5181.099609375, 761.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5184.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5187.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5190.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5193.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5229.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5232.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5235.095703125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5238.095703125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5241.095703125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5238.095703125, 773.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5235.095703125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5232.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5229.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5193.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5190.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5187.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5184.095703125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5235.095703125, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5232.0966796875, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5229.0966796875, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.09765625, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.09765625, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.095703125, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5193.095703125, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5232.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5229.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.09375, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5193.09375, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5190.0908203125, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5193.091796875, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.091796875, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.095703125, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.095703125, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5229.0966796875, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.0947265625, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.0947265625, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.08984375, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.09375, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.09375, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 843.5078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 843.5078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 843.5078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.0927734375, 843.5078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 855.2021484375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 855.2021484375, 62.799999237061, 0, 90, 90); } for nIndex, uObject in pairs ( tObjects ) do setElementCollisionsEnabled ( nIndex, false ); end and still the warning appears: bad argument @ 'setelementcollisionenabled' and now its yours.. i made the last you said Link to comment
Kenix Posted April 6, 2012 Share Posted April 6, 2012 local tObjects = { createObject ( 3437, 5222.7998046875, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5199.3999023438, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5234.4995117188, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5246.19921875, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5257.8989257813, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5269.5986328125, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5281.2978515625, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5292.998046875, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5304.697265625, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5187.69921875, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5175.9990234375, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5164.298828125, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5152.5986328125, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5140.8984375, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5129.1982421875, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5117.498046875, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5211.1000976563, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5211.1000976563, 758.69921875, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5211.1000976563, 761.69921875, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5211.1000976563, 764.69921875, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5211.1000976563, 767.69921875, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5211.099609375, 773.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 785, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 796.69921875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 808.3994140625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 820.099609375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 831.7998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 843.5, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 855.19921875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 866.8994140625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 878.599609375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 902, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 878.599609375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 866.90234375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 855.2021484375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 843.501953125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 831.8017578125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 820.1005859375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 796.7001953125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 785, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 773.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 761.599609375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 761.599609375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 773.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 785, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 796.7001953125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 820.1005859375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 831.8017578125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 843.501953125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 855.2021484375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 866.90234375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 878.599609375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5181.099609375, 761.599609375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5184.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5187.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5190.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5193.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5196.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5199.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5202.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5220.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5223.09765625, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5226.09765625, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5229.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5232.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5235.095703125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5238.095703125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5241.095703125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5238.095703125, 773.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5235.095703125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5232.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5229.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5226.09765625, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5223.09765625, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5220.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5202.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5199.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5196.09765625, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5193.09765625, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5190.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5187.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5184.095703125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5235.095703125, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5232.0966796875, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5229.0966796875, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5226.09765625, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5223.09765625, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5220.0986328125, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5202.09765625, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5199.09765625, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5196.095703125, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5193.095703125, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5232.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5229.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5226.09765625, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5223.09765625, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5220.0986328125, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5202.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5199.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5196.09375, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5193.09375, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5190.0908203125, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5193.091796875, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5196.091796875, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5199.095703125, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5202.095703125, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5220.0986328125, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5223.09765625, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5226.09765625, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5229.0966796875, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5226.09765625, 820.1083984375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5223.09765625, 820.1083984375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5220.0986328125, 820.1083984375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 820.1083984375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 820.1083984375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5202.0947265625, 820.1083984375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5199.0947265625, 820.1083984375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5196.08984375, 820.1083984375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5199.09375, 831.80078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5202.09375, 831.80078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 831.80078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 831.80078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5220.0986328125, 831.80078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5223.09765625, 831.80078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5220.0986328125, 843.5078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 843.5078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 843.5078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5202.0927734375, 843.5078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 855.2021484375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 855.2021484375, 62.799999237061, 0, 90, 90 ); } for nIndex, uObject in pairs ( tObjects ) do setElementCollisionsEnabled ( uObject, false ) end Link to comment
drk Posted April 6, 2012 Share Posted April 6, 2012 Only available client-side for 1.0.x Fail. @@Kenix, I posted the same and he said that don't work. Link to comment
Al3grab Posted April 6, 2012 Share Posted April 6, 2012 local tObjects = {} for nIndex, uObject in ipairs ( tObjects ) do setElementCollisionsEnabled ( uObject, false ); end Tested ,, Link to comment
Kenix Posted April 6, 2012 Share Posted April 6, 2012 (edited) @@Kenix, I posted the same and he said that don't work. Ye, because you get index object ( number ) not element object( userdata ). for nIndex, uObject in pairs ( tObjects ) do setElementCollisionsEnabled ( uObject, false ) end My loop. Your loop. for nIndex, uObject in pairs ( tObjects ) do setElementCollisionsEnabled ( nIndex, false ); end Also t = { 1; ':1'; } print( string.format( '%s %s', t[1], t[2] ) ) -- 1 :1 Edited April 6, 2012 by Guest Link to comment
drk Posted April 6, 2012 Share Posted April 6, 2012 You wanna make a table with all objects?If is that then: local tObjects = { createObject ( 3437, 5222.7998046875, 755.70001220703, 62.799999237061, 0, 90, 0 ); } for nIndex, uObject in pairs ( tObjects ) do setElementCollisionsEnabled ( uObject, false ); end Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now