
Untitled
By: a guest on
Jun 30th, 2012 | syntax:
None | size: 1.29 KB | hits: 13 | expires: Never
function shipSpawn()
local shipart = {}
local ship = createObject ( 9583, -2475.1328, 1559.0703 + yh, 31.3125 )
local shipart[1] = createObject ( 9584, -2485.0781, 1544.9453 + yh, 26.1953 )
local shipart[2] = createObject ( 9585, -2409.8438, 1544.9453 + yh, 7.0000 )
local shipart[3] = createObject ( 9586, -2412.1250, 1544.9453 + yh, 17.0469 )
local shipart[4] = createObject ( 9587, -2401.1406, 1544.9375 + yh, 23.5938 )
local shipart[5] = createObject ( 9588, -2404.2109, 1544.9375 + yh, 7.5859 )
local shipart[6] = createObject ( 9589, -2389.3984, 1544.8828 + yh, 4.0313 )
local shipart[7] = createObject ( 9590, -2403.5078, 1544.9453 + yh, 8.7188 )
local shipart[8] = createObject ( 9604, -2392.5938, 1545.9063 + yh, 24.8594 )
local shipart[9] = createObject ( 9761, -2411.390625, 1544.945313 + yh, 27.078125 )
local shipart[10] = createObject ( 9698, -2473.59, 1543.77 + yh, 29.0781 )
local shipart[11] = createObject ( 9818, -2470.27,1544.96 + yh, 33.8672 )
for key, shiparts in pairs(shipart) do
attachRotationAdjusted( shiparts, ship )
--setTimer(setElementPosition,50,1,ship, 775.97863769531, -1550.9223632812, 898.51843261719)
--setTimer(setElementRotation,50,1,ship, 0,0,90)
end
return ship
end
ship1 = shipSpawn(575.97863769531, -1550.9223632812, 898.51843261719)