Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define DISABLE_PERSISTENCY
- #include "$CurrentDir:Missions\\DayZCommunityOfflineMode.ChernarusPlus\\core\\BaseModuleInclude.c"
- #include "$CurrentDir:Missions\\DayZCommunityOfflineMode.ChernarusPlus\\ButlerZ\\LoadAddons.c"
- Mission CreateCustomMission(string path)
- {
- if ( GetGame().IsServer() && GetGame().IsMultiplayer() )
- return new CommunityOfflineServer();
- return new CommunityOfflineClient();
- }
- void SpawnObject(string objectName, vector position, vector orientation)
- {
- Object obj;
- obj = Object.Cast(GetGame().CreateObject(objectName, "0 0 0"));
- obj.SetPosition(position);
- obj.SetOrientation(orientation);
- // Force update collisions
- vector roll = obj.GetOrientation();
- roll [ 2 ] = roll [ 2 ] - 1;
- obj.SetOrientation(roll);
- roll [ 2 ] = roll [ 2 ] + 1;
- obj.SetOrientation(roll);
- }
- void main()
- {
- LoadButlerZBuildings();
- //In Beta We Trust!
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement