Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.88 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. obj.SetOrientation( obj.GetOrientation() ); //Collision fix
  8. obj.Update();
  9. obj.SetAffectPathgraph( true, false );
  10. if( obj.CanAffectPathgraph() ) GetGame().GetCallQueue( CALL_CATEGORY_SYSTEM ).CallLater( GetGame().UpdatePathgraphRegionByObject, 100, false, obj );
  11. }
  12.  
  13. //Your custom spawned objects
  14. SpawnObject( "bldr_fluor_lamp", "2934.889893 5.019340 2083.419922", "0.000000 0.000000 0.000000" );
  15. SpawnObject( "bldr_fluor_lamp", "2934.899902 5.019340 2078.590088", "0.000000 0.000000 0.000000" );
  16. SpawnObject( "bldr_fluor_lamp", "2934.899902 5.019340 2073.219971", "0.000000 0.000000 0.000000" );
  17. SpawnObject( "bldr_fluor_lamp", "2938.239990 4.979150 2083.439941", "0.000000 0.000000 0.000000" );
  18. SpawnObject( "bldr_fluor_lamp", "2938.229980 4.979150 2078.620117", "0.000000 0.000000 0.000000" );
  19. SpawnObject( "bldr_fluor_lamp", "2938.219971 5.007770 2073.199951", "0.000000 0.000000 0.000000" );
  20. SpawnObject( "bldr_fluor_lamp", "2936.610107 5.007770 2069.139893", "-90.000000 0.000000 0.000000" );
  21. SpawnObject( "bldr_fluor_lamp", "2936.250000 5.015850 2065.919922", "-90.000000 0.000000 0.000000" );
  22. SpawnObject( "bldr_fluor_lamp", "2932.320068 4.969340 2072.669922", "90.000000 0.000000 0.000000" );
  23. SpawnObject( "bldr_fluor_lamp", "2928.419922 5.019340 2075.610107", "0.000000 0.000000 0.000000" );
  24. SpawnObject( "bldr_fluor_lamp", "2928.389893 5.019340 2070.770020", "0.000000 0.000000 0.000000" );
  25. SpawnObject( "bldr_fluor_lamp", "2928.449951 5.019340 2081.270020", "0.000000 0.000000 0.000000" );
  26. SpawnObject( "bldr_fluor_lamp", "2931.399902 5.019340 2082.260010", "0.000000 0.000000 0.000000" );
  27. SpawnObject( "bldr_fluor_lamp", "2931.290039 5.019340 2077.429932", "0.000000 0.000000 0.000000" );
  28. SpawnObject( "bldr_fluor_lamp", "2925.169922 5.019340 2076.770020", "0.000000 0.000000 0.000000" );
  29. SpawnObject( "bldr_fluor_lamp", "2925.389893 5.019340 2082.500000", "0.000000 0.000000 0.000000" );
  30. SpawnObject( "bldr_fluor_lamp", "2931.530029 5.007760 2065.540039", "0.000000 0.000000 0.000000" );
  31. SpawnObject( "bldr_fluor_lamp", "2931.540039 5.029140 2068.850098", "0.000000 0.000000 0.000000" );
  32. SpawnObject( "bldr_fluor_lamp", "2925.290039 5.019340 2067.699951", "90.000000 0.000000 0.000000" );
  33. SpawnObject( "bldr_fluor_lamp", "2928.300049 5.019340 2065.000000", "0.000000 0.000000 0.000000" );
  34. SpawnObject( "bldr_fluor_lamp", "2924.360107 5.025230 2064.919922", "90.000000 0.000000 0.000000" );
  35. SpawnObject( "bldr_fluor_lamp", "2922.419922 5.019340 2070.389893", "0.000000 0.000000 0.000000" );
  36. SpawnObject( "bldr_fluor_lamp", "2925.239990 5.019340 2071.429932", "0.000000 0.000000 0.000000" );
  37. SpawnObject( "bldr_fluor_lamp", "2919.350098 5.019340 2070.439941", "0.000000 0.000000 0.000000" );
  38. SpawnObject( "bldr_fluor_lamp", "2919.389893 5.019340 2065.669922", "0.000000 0.000000 0.000000" );
  39. SpawnObject( "bldr_fluor_lamp", "2912.800049 5.019340 2065.629883", "0.000000 0.000000 0.000000" );
  40. SpawnObject( "bldr_fluor_lamp", "2912.989990 5.019340 2070.489990", "0.000000 0.000000 0.000000" );
  41. SpawnObject( "bldr_fluor_lamp", "2919.250000 5.019340 2073.439941", "91.000015 0.000000 0.000000" );
  42. SpawnObject( "bldr_fluor_lamp", "2920.760010 5.019340 2077.110107", "0.000000 0.000000 0.000000" );
  43. SpawnObject( "bldr_fluor_lamp", "2912.790039 5.019340 2075.439941", "0.000000 0.000000 0.000000" );
  44. SpawnObject( "bldr_fluor_lamp", "2920.489990 5.019340 2082.620117", "0.000000 0.000000 0.000000" );
  45. SpawnObject( "bldr_fluor_lamp", "2912.540039 5.019340 2079.459961", "0.000000 0.000000 0.000000" );
  46. SpawnObject( "bldr_fluor_lamp", "2912.560059 5.007770 2083.860107", "0.000000 0.000000 0.000000" );
  47. SpawnObject( "bldr_fluor_lamp", "2916.419922 5.007760 2082.540039", "0.000000 0.000000 0.000000" );
  48. SpawnObject( "bldr_fluor_lamp", "2916.419922 5.019340 2077.899902", "0.000000 0.000000 0.000000" );
  49. SpawnObject( "bldr_fluor_lamp", "2916.409912 5.019340 2073.070068", "0.000000 0.000000 0.000000" );
  50. SpawnObject( "bldr_fluor_lamp", "2916.409912 5.019340 2073.070068", "0.000000 0.000000 0.000000" );
  51. SpawnObject( "bldr_fluor_lamp", "2939.360107 5.007770 2068.050049", "0.000000 0.000000 0.000000" );
  52. SpawnObject( "bldr_misc_tirepile", "2924.129883 6.299980 2059.810059", "0.000000 0.000000 0.000000" );
  53. SpawnObject( "bldr_sign_decal_afs_01", "2929.379883 3.621780 2077.350098", "90.000000 0.000000 -1.000000" );
  54. SpawnObject( "bldr_sign_decal_afs_02", "2929.360107 3.583360 2082.159912", "90.000000 0.000000 0.000000" );
  55. SpawnObject( "bldr_sign_decal_afs_03", "2927.330078 3.583360 2077.570068", "-90.000000 0.000000 0.000000" );
  56. SpawnObject( "bldr_sign_decal_afs_04", "2927.340088 3.583360 2082.149902", "-90.000000 0.000000 0.000000" );
  57. SpawnObject( "bldr_sign_decal_afs_05", "2923.260010 3.633360 2071.879883", "90.000000 0.000000 0.000000" );
  58. SpawnObject( "bldr_sign_decal_afs_06", "2917.300049 3.618340 2070.070068", "90.000000 0.000000 0.000000" );
  59. SpawnObject( "bldr_sign_decal_afs_07", "2917.300049 3.633360 2066.139893", "90.000000 0.000000 0.000000" );
  60. SpawnObject( "bldr_sign_decal_afs_08", "2915.280029 3.583360 2066.169922", "-90.000000 0.000000 0.000000" );
  61. SpawnObject( "bldr_sign_decal_afs_09", "2915.270020 3.583360 2069.949951", "-90.000000 0.000000 0.000000" );
  62. SpawnObject( "bldr_sign_decal_afs_10", "2915.360107 3.633360 2075.479980", "-90.000000 0.000000 0.000000" );
  63. SpawnObject( "bldr_sign_decal_afs_11", "2915.330078 3.583360 2082.810059", "-90.000000 0.000000 0.000000" );
  64. SpawnObject( "bldr_sign_decal_afs_12", "2917.419922 3.583360 2082.899902", "90.000000 0.000000 0.000000" );
  65. SpawnObject( "bldr_sign_decal_afs_13", "2917.389893 3.633360 2076.760010", "90.000000 0.000000 0.000000" );
  66. SpawnObject( "bldr_flowers_01", "2934.010010 2.969340 2071.250000", "0.000000 0.000000 0.000000" );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement