Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 1.29 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function shipSpawn()
  2.  
  3.  
  4. local shipart = {}
  5. local ship = createObject ( 9583, -2475.1328, 1559.0703 + yh, 31.3125 )
  6. local shipart[1] = createObject ( 9584, -2485.0781, 1544.9453 + yh, 26.1953 )
  7. local shipart[2] = createObject ( 9585, -2409.8438, 1544.9453 + yh, 7.0000 )
  8. local shipart[3] = createObject ( 9586, -2412.1250, 1544.9453 + yh, 17.0469  )
  9. local shipart[4] = createObject ( 9587, -2401.1406, 1544.9375 + yh, 23.5938  )
  10. local shipart[5] = createObject ( 9588, -2404.2109, 1544.9375 + yh, 7.5859  )
  11. local shipart[6] = createObject ( 9589, -2389.3984, 1544.8828 + yh, 4.0313  )
  12. local shipart[7] = createObject ( 9590, -2403.5078, 1544.9453 + yh, 8.7188  )
  13. local shipart[8] = createObject ( 9604, -2392.5938, 1545.9063 + yh, 24.8594  )
  14. local shipart[9] = createObject ( 9761,  -2411.390625, 1544.945313 + yh, 27.078125  )
  15. local shipart[10] = createObject ( 9698,  -2473.59, 1543.77 + yh, 29.0781  )
  16. local shipart[11] = createObject ( 9818,  -2470.27,1544.96 + yh, 33.8672  )
  17.  
  18.  
  19. for key, shiparts in pairs(shipart) do
  20. attachRotationAdjusted( shiparts, ship )
  21. --setTimer(setElementPosition,50,1,ship, 775.97863769531, -1550.9223632812, 898.51843261719)
  22. --setTimer(setElementRotation,50,1,ship, 0,0,90)
  23.  
  24.  
  25. end
  26. return ship
  27. end
  28.  
  29.  
  30. ship1 = shipSpawn(575.97863769531, -1550.9223632812, 898.51843261719)