Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Spawn helper function
- void SpawnObject( string type, vector position, vector orientation )
- {
- auto obj = GetGame().CreateObject( type, position );
- obj.SetPosition( position );
- obj.SetOrientation( orientation );
- //Force collision update
- vector roll = obj.GetOrientation();
- roll [ 2 ] = roll [ 2 ] - 1;
- obj.SetOrientation( roll );
- roll [ 2 ] = roll [ 2 ] + 1;
- obj.SetOrientation( roll );
- }
- //Your custom spawned objects
- SpawnObject("Land_Castle_Wall1_20", "8151.923828 469.691864 9087.886719", "-25.000013 0.000000 0.000000");
- SpawnObject("Land_Castle_Wall1_20", "8138.131348 469.765045 9081.491211", "-25.000002 0.000000 0.000000");
- SpawnObject("Land_Castle_Wall1_20", "8123.321777 469.821320 9086.750000", "65.000015 0.000000 0.000000");
- SpawnObject("Land_Castle_Wall1_Corner1", "8121.311523 469.789032 9095.732422", "0.000000 0.000000 0.000000");
- SpawnObject("Land_Castle_Wall1_20", "8117.013184 469.835999 9106.608398", "65.000015 0.000000 0.000000");
- SpawnObject("Land_Castle_Wall1_20", "8122.339844 470.259552 9121.590820", "154.999985 0.000000 0.000000");
- SpawnObject("Land_Castle_Wall1_Corner1", "8132.564453 470.928070 9124.638672", "0.000000 0.000000 0.000000");
- SpawnObject("Land_Castle_Wall1_20", "8147.509766 471.073364 9137.860352", "-25.000002 0.000000 0.000000");
- SpawnObject("Land_Castle_Wall1_20", "8139.876465 470.901520 9134.095703", "-26.000010 0.000000 0.000000");
- SpawnObject("Land_Castle_Wall1_Corner1", "8132.443359 470.550537 9130.243164", "-53.999996 0.000000 0.000000");
- SpawnObject("Land_Castle_Wall1_Corner1", "8132.174316 470.024475 9126.985352", "-20.000006 0.000000 0.000000");
- SpawnObject("Land_Castle_Wall1_Corner1", "8181.198242 469.020264 9113.095703", "64.000008 0.000000 0.000000");
- SpawnObject("Land_Castle_Wall1_20", "8172.017090 470.186920 9125.958984", "-115.999962 0.000000 0.000000");
- SpawnObject("Land_Castle_Wall1_20", "8176.637695 468.979004 9099.622070", "-25.999992 0.000000 0.000000");
- SpawnObject("Land_Castle_Wall2_Corner2", "8182.834473 467.349518 9106.338867", "48.000004 0.000000 0.000000");
- SpawnObject("Land_Castle_Wall1_Corner1", "8181.323730 469.270203 9111.145508", "-172.000031 0.000000 0.000000");
- SpawnObject("Land_Mil_Guardhouse1", "8167.452148 476.451416 9101.851563", "-26.000015 0.000000 0.000000");
- SpawnObject("Land_Mil_Tower_Small", "8158.947754 477.660980 9093.915039", "154.999985 0.000000 0.000000");
- SpawnObject("Land_Construction_House1", "8136.942871 477.107361 9096.669922", "-27.999992 0.000000 0.000000");
- SpawnObject("Land_Mil_Fortified_Nest_Big", "8158.399902 475.087860 9107.535156", "-24.000011 0.000000 0.000000");
- SpawnObject("Land_Castle_Wall1_Corner1", "8158.716797 468.470398 9093.925781", "160.000031 0.000000 0.000000");
- SpawnObject("Land_Castle_WallS_5_D", "8161.056152 473.519196 9093.849609", "68.000015 0.000000 0.000000");
- 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