Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 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_wall_cbrk_corner", "983.471008 181.768997 7612.910156", "-10.000002 0.000000 0.000000" );
  15. SpawnObject( "bldr_wall_cbrk_corner", "984.250977 181.768997 7613.009766", "-95.000000 0.000000 0.000000" );
  16. SpawnObject( "bldr_container_2d", "968.185242 183.607681 7667.054688", "85.000008 0.000000 0.000000" );
  17. SpawnObject( "bldr_container_2c", "974.152832 183.647125 7667.828613", "85.000008 0.000000 0.000000" );
  18. SpawnObject( "bldr_container_2a", "965.262939 183.587738 7662.672363", "0.000000 0.000000 0.000000" );
  19. SpawnObject( "bldr_container_2b", "965.341064 183.586777 7656.692871", "0.000000 0.000000 0.000000" );
  20. SpawnObject( "bldr_container_2b", "965.590027 183.589005 7650.810059", "0.000000 0.000000 0.000000" );
  21. SpawnObject( "bldr_container_2d", "966.541016 183.602005 7644.580078", "-14.999999 0.000000 0.000000" );
  22. SpawnObject( "bldr_misc_barbedwire", "989.567017 185.052994 7659.640137", "85.000008 0.000000 0.000000" );
  23. SpawnObject( "bldr_misc_barbedwire", "988.500000 185.087997 7665.799805", "80.000000 0.000000 0.000000" );
  24. SpawnObject( "bldr_misc_barbedwire", "962.442017 184.343994 7657.370117", "115.000000 0.000000 0.000000" );
  25. SpawnObject( "bldr_misc_barbedwire", "968.216003 185.350006 7641.500000", "160.000000 0.000000 0.000000" );
  26. SpawnObject( "Land_City_Stand_News2", "987.372009 182.733994 7654.169922", "-100.000008 0.000000 0.000000" );
  27. SpawnObject( "bldr_misc_barbedwire", "989.687012 185.210999 7654.810059", "85.000008 0.000000 0.000000" );
  28. SpawnObject( "bldr_misc_barbedwire", "983.856018 181.753006 7612.560059", "0.000000 0.000000 0.000000" );
  29. SpawnObject( "bldr_wall_fenr_3", "984.060974 182.449997 7609.910156", "0.000000 0.000000 0.000000" );
  30. SpawnObject( "bldr_wall_fenr_3", "981.768982 182.449997 7610.540039", "29.999998 0.000000 0.000000" );
  31. SpawnObject( "Land_Misc_Well_Pump_Blue", "967.289978 181.475006 7659.109863", "0.000000 0.000000 0.000000" );
  32. SpawnObject( "ImprovisedShelterPitched", "968.044006 181.464783 7654.029785", "-90.000000 0.092723 -0.115355" );
  33. SpawnObject( "bldr_foldingbed_open", "968.096985 180.820007 7654.000000", "0.000000 0.000000 0.000000" );
  34. SpawnObject( "bldr_wall_gate_cgry", "990.677002 182.921997 7650.240234", "85.000008 0.000000 0.000000" );
  35. SpawnObject( "bldr_wall_indvar1_5_2", "990.830017 183.160004 7645.080078", "-85.000008 0.000000 0.000000" );
  36. SpawnObject( "bldr_container_2b", "980.078979 183.615997 7668.740234", "85.000008 0.000000 0.000000" );
  37. SpawnObject( "CamoNetShelter", "976.338013 181.148148 7659.669922", "-179.999985 0.087014 0.119720" );
  38. SpawnObject( "Land_Wreck_Ikarus", "973.143982 192.585007 7631.359863", "170.000015 0.000000 0.000000" );
  39. SpawnObject( "bldr_Wall_IndCnc4_Low_8", "988.763977 182.164993 7665.959961", "80.000000 0.000000 0.000000" );
  40. SpawnObject( "bldr_Garbage_Pile2", "999.067810 181.589340 7647.911133", "0.000000 0.000000 0.000000" );
  41. SpawnObject( "bldr_Garbage_Pile2", "998.062500 181.684570 7655.875977", "0.000000 0.000000 0.000000" );
  42. SpawnObject( "bldr_Garbage_Pile6", "969.356873 181.071838 7646.693848", "0.000000 0.000000 0.000000" );
  43. SpawnObject( "bldr_Garbage_Pile6", "972.624390 181.088623 7643.904785", "85.000008 0.000000 0.000000" );
  44. SpawnObject( "bldr_Garbage_Container_Paper", "986.642090 181.968094 7645.199219", "-85.000008 0.000000 0.000000" );
  45. SpawnObject( "bldr_sign_stop", "974.949097 181.999374 7643.396484", "-179.999985 0.000000 0.000000" );
  46. SpawnObject( "bldr_sign_stop", "998.236572 182.329819 7656.056641", "0.000000 -10.000000 4.999999" );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement