Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  1. //Spawn helper function
  2. void SpawnObject( string type, vector position, vector orientation )
  3. {
  4. auto obj = GetGame().CreateObject( type, position );
  5. obj.SetPosition( position );
  6. obj.SetOrientation( orientation );
  7. //Force collision update
  8. vector roll = obj.GetOrientation();
  9. roll [ 2 ] = roll [ 2 ] - 1;
  10. obj.SetOrientation( roll );
  11. roll [ 2 ] = roll [ 2 ] + 1;
  12. obj.SetOrientation( roll );
  13. }
  14.  
  15. //Your custom spawned objects
  16. SpawnObject("Land_Castle_Wall1_20", "8151.923828 469.691864 9087.886719", "-25.000013 0.000000 0.000000");
  17. SpawnObject("Land_Castle_Wall1_20", "8138.131348 469.765045 9081.491211", "-25.000002 0.000000 0.000000");
  18. SpawnObject("Land_Castle_Wall1_20", "8123.321777 469.821320 9086.750000", "65.000015 0.000000 0.000000");
  19. SpawnObject("Land_Castle_Wall1_Corner1", "8121.311523 469.789032 9095.732422", "0.000000 0.000000 0.000000");
  20. SpawnObject("Land_Castle_Wall1_20", "8117.013184 469.835999 9106.608398", "65.000015 0.000000 0.000000");
  21. SpawnObject("Land_Castle_Wall1_20", "8122.339844 470.259552 9121.590820", "154.999985 0.000000 0.000000");
  22. SpawnObject("Land_Castle_Wall1_Corner1", "8132.564453 470.928070 9124.638672", "0.000000 0.000000 0.000000");
  23. SpawnObject("Land_Castle_Wall1_20", "8147.509766 471.073364 9137.860352", "-25.000002 0.000000 0.000000");
  24. SpawnObject("Land_Castle_Wall1_20", "8139.876465 470.901520 9134.095703", "-26.000010 0.000000 0.000000");
  25. SpawnObject("Land_Castle_Wall1_Corner1", "8132.443359 470.550537 9130.243164", "-53.999996 0.000000 0.000000");
  26. SpawnObject("Land_Castle_Wall1_Corner1", "8132.174316 470.024475 9126.985352", "-20.000006 0.000000 0.000000");
  27. SpawnObject("Land_Castle_Wall1_Corner1", "8181.198242 469.020264 9113.095703", "64.000008 0.000000 0.000000");
  28. SpawnObject("Land_Castle_Wall1_20", "8172.017090 470.186920 9125.958984", "-115.999962 0.000000 0.000000");
  29. SpawnObject("Land_Castle_Wall1_20", "8176.637695 468.979004 9099.622070", "-25.999992 0.000000 0.000000");
  30. SpawnObject("Land_Castle_Wall2_Corner2", "8182.834473 467.349518 9106.338867", "48.000004 0.000000 0.000000");
  31. SpawnObject("Land_Castle_Wall1_Corner1", "8181.323730 469.270203 9111.145508", "-172.000031 0.000000 0.000000");
  32. SpawnObject("Land_Mil_Guardhouse1", "8167.452148 476.451416 9101.851563", "-26.000015 0.000000 0.000000");
  33. SpawnObject("Land_Mil_Tower_Small", "8158.947754 477.660980 9093.915039", "154.999985 0.000000 0.000000");
  34. SpawnObject("Land_Construction_House1", "8136.942871 477.107361 9096.669922", "-27.999992 0.000000 0.000000");
  35. SpawnObject("Land_Mil_Fortified_Nest_Big", "8158.399902 475.087860 9107.535156", "-24.000011 0.000000 0.000000");
  36. SpawnObject("Land_Castle_Wall1_Corner1", "8158.716797 468.470398 9093.925781", "160.000031 0.000000 0.000000");
  37. SpawnObject("Land_Castle_WallS_5_D", "8161.056152 473.519196 9093.849609", "68.000015 0.000000 0.000000");
  38. SpawnObject("Land_Tank_Medium_Stairs", "8169.246582 475.787598 9125.239258", "-115.999962 -1.000000 -1.000000");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement