Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Spawn helper function
- 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
- if ( obj.CanAffectPathgraph() )
- {
- obj.SetAffectPathgraph(true, false);
- GetGame().GetCallQueue( CALL_CATEGORY_SYSTEM ).CallLater( GetGame().UpdatePathgraphRegionByObject, 100, false, obj );
- }
- }
- #define DISABLE_PERSISTENCY
- #include "$CurrentDir:Missions\\DayZCommunityOfflineMode.ChernarusPlus\\core\\BaseModuleInclude.c"
- Mission CreateCustomMission(string path)
- {
- if ( GetGame().IsServer() && GetGame().IsMultiplayer() )
- return new CommunityOfflineServer();
- return new CommunityOfflineClient();
- }
- void main()
- {
- }
Add Comment
Please, Sign In to add comment