(Updated) How to add your custom objects into your Dayz server

Subscribers:
1,640
Published on ● Video Link: https://www.youtube.com/watch?v=BvU6jXQUJwY



Category:
Vlog
Duration: 27:26
2,400 views
28


So I wanted to redo couple videos I have made in the past and add them into 1 video, It means video is a bit longer but now are all in 1 place.
there are time stamps to go to where you need to.

Main thumbnail is not mine and have taken from google images, I have just added little extra to the main backgroud
Credit to the thumbnail is DannyDog68

Links
https://github.com/salutesh/DayZ-Expansion-Scripts/wiki/%5BServer-Hosting%5D-Updating-your-mapping-to-the-new-method

https://code.visualstudio.com/

Expansion method (.map) starts around 2.05 minutes
Dayz method (.c) starts around 12.45 minutes

#include "$CurrentDir:\\mpmissions\\Your mission name here\\name of custom folder\\nameoffile.c"

nameoffile();
//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);
}
}