Jump to content

Nehr

Members
  • Content Count

    9
  • Joined

  • Last visited

Posts posted by Nehr


  1. EDIT: Working fine now.

    Hello, since the last update my link in the menu don't work anymore.
    I was doing like this:
     

    void MyDiscord()
    	{
    		GetGame().OpenURL( "https://discord.gg/*******" );
    	}

    Is there a new way to do it, or it's just broken at the moment ?


  2. Hello, we need more info like, what type of event you made. (Heli, Car etc...)
    And the "mapgroupproto.xml" is for positioning loot on type Building / Vehicles, it's not for loot on the map.


  3. I can suggest you this way: 

    (It's the Way 1 with some change)

    On 24/12/2018 at 2:32 PM, Nehr said:

    To be easier i've done it like this:

    In my init.c 
     

    
    #include "$CurrentDir:\mpmissions\dayzOffline.chernarusplus\(my mapping file).c"
    
    void SpawnObject( string type, vector position, vector orientation )
    {
        auto obj = GetGame().CreateObject( type, position );
        obj.SetPosition( position );
        obj.SetOrientation( orientation );
        //Force collision update
        vector roll = obj.GetOrientation();
        roll [ 2 ] = roll [ 2 ] - 1;
        obj.SetOrientation( roll );
        roll [ 2 ] = roll [ 2 ] + 1;
        obj.SetOrientation( roll );
    }

    in the void main() (just before the last "}" ) i've added: 

    
    AddMyObjects();

    And then in my server folder i've created a file: (my mapping file).c and inside i put all my custom buildings like this:
     

    
    void AddMyObjects()
    {
        //Custom Nehr
        //Airfield
        SpawnObject("Land_Airfield_Hangar_Green", "4566.678711 345.704529 10186.797852", "58.000217 0.000000 0.000000");
       ...
       ...
    }

    Don't forget to replace the (my mapping file).c you just put the name you want.



    Like this my init.c stay clear and i have a file were there is all my buildings.


  4. IT's in the 

    mapgroupproto.xml
            <group name="Wreck_Mi8" lootmax="10">
                    <usage name="Military" />
                    <container name="lootFloor" lootmax="10">
                            <category name="tools" />
                            <category name="containers" />
                            <category name="clothes" />
                            <category name="weapons" />
                            <tag name="floor" />
                            <tag name="shelves" />
      			.......
            <group name="Wreck_UH1Y" lootmax="10">
                    <usage name="Military" />
                    <container name="lootFloor" lootmax="10">
                            <category name="tools" />
                            <category name="containers" />
                            <category name="clothes" />
                            <category name="weapons" />
                            <tag name="floor" />
                            <tag name="shelves" />
                      	.....

     


  5. To be easier i've done it like this:

    In my init.c 
     

    #include "$CurrentDir:\mpmissions\dayzOffline.chernarusplus\(my mapping file).c"
    
    void SpawnObject( string type, vector position, vector orientation )
    {
        auto obj = GetGame().CreateObject( type, position );
        obj.SetPosition( position );
        obj.SetOrientation( orientation );
        //Force collision update
        vector roll = obj.GetOrientation();
        roll [ 2 ] = roll [ 2 ] - 1;
        obj.SetOrientation( roll );
        roll [ 2 ] = roll [ 2 ] + 1;
        obj.SetOrientation( roll );
    }

    in the void main() (just before the last "}" ) i've added: 

    AddMyObjects();

    And then in my server folder i've created a file: (my mapping file).c and inside i put all my custom buildings like this:
     

    void AddMyObjects()
    {
        //Custom Nehr
        //Airfield
        SpawnObject("Land_Airfield_Hangar_Green", "4566.678711 345.704529 10186.797852", "58.000217 0.000000 0.000000");
       ...
       ...
    }

    Don't forget to replace the (my mapping file).c you just put the name you want.



    Like this my init.c stay clear and i have a file were there is all my buildings.

×