Advertisement
MangoAU

Untitled

Jan 19th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #define DISABLE_PERSISTENCY
  2.  
  3. #include "$CurrentDir:Missions\\DayZCommunityOfflineMode.ChernarusPlus\\core\\BaseModuleInclude.c"
  4. #include "$CurrentDir:Missions\\DayZCommunityOfflineMode.ChernarusPlus\\ButlerZ\\LoadAddons.c"
  5.  
  6. Mission CreateCustomMission(string path)
  7. {
  8. if ( GetGame().IsServer() && GetGame().IsMultiplayer() )
  9. return new CommunityOfflineServer();
  10.  
  11. return new CommunityOfflineClient();
  12. }
  13.  
  14. void SpawnObject(string objectName, vector position, vector orientation)
  15. {
  16. Object obj;
  17. obj = Object.Cast(GetGame().CreateObject(objectName, "0 0 0"));
  18. obj.SetPosition(position);
  19. obj.SetOrientation(orientation);
  20. // Force update collisions
  21. vector roll = obj.GetOrientation();
  22. roll [ 2 ] = roll [ 2 ] - 1;
  23. obj.SetOrientation(roll);
  24. roll [ 2 ] = roll [ 2 ] + 1;
  25. obj.SetOrientation(roll);
  26. }
  27.  
  28. void main()
  29. {
  30. LoadButlerZBuildings();
  31. //In Beta We Trust!
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement