Hello @misticos
I have tried the basic API example provided with a test building
But it seems i can't get the API to paste the building at the Vector3 position
Pasting the building with /paste testbuilding
Works just fine
public void PasteBuilding(BasePlayer player, Vector3 pos, string filename)
{
if(CopyPaste == null) { /*Not installed*/ return; }
var options = new List<string> { "stability ", "false", "autoheight", "true" };
CopyPaste.Call("TryPasteFromVector3", pos, 0f, "testbuilding", options.ToArray());
}The "testbuilding" (its just a 3x3 twig foundations)
{
"default": {
"position": {
"x": "5.901008",
"y": "0.4499315",
"z": "-476.8461"
},
"rotationdiff": "0.9581398",
"rotationy": "108.3902"
},
"entities": [
{
"flags": {
"Reserved2": true
},
"grade": 0,
"ownerid": 76561############,
"pos": {
"x": "-2.322989",
"y": "-0.1000008",
"z": "-1.27338"
},
"prefabname": "assets/prefabs/building core/foundation/foundation.prefab",
"rot": {
"x": "0",
"y": "0.9336258",
"z": "0"
},
"skinid": 0
},
{
"flags": {
"Reserved2": true
},
"grade": 0,
"ownerid": 76561############,
"pos": {
"x": "-1.696412",
"y": "-0.1000008",
"z": "2.922736"
},
"prefabname": "assets/prefabs/building core/foundation/foundation.prefab",
"rot": {
"x": "-1.776357E-15",
"y": "-0.6371706",
"z": "-1.748456E-07"
},
"skinid": 0
},
{
"flags": {
"Reserved2": true
},
"grade": 0,
"ownerid": 76561############,
"pos": {
"x": "0.7149451",
"y": "-0.1000015",
"z": "4.7075"
},
"prefabname": "assets/prefabs/building core/foundation/foundation.prefab",
"rot": {
"x": "2.622683E-07",
"y": "0.9336258",
"z": "-8.742277E-08"
},
"skinid": 0
},
{
"flags": {
"Reserved2": true
},
"grade": 0,
"ownerid": 76561############,
"pos": {
"x": "-4.107769",
"y": "-0.1000004",
"z": "1.137973"
},
"prefabname": "assets/prefabs/building core/foundation/foundation.prefab",
"rot": {
"x": "-8.74228E-08",
"y": "4.075218",
"z": "-8.742278E-08"
},
"skinid": 0
},
{
"flags": {
"Reserved2": true
},
"grade": 0,
"ownerid": 76561############,
"pos": {
"x": "2.499726",
"y": "-0.1000013",
"z": "2.296147"
},
"prefabname": "assets/prefabs/building core/foundation/foundation.prefab",
"rot": {
"x": "1.748456E-07",
"y": "0.9336258",
"z": "-1.748456E-07"
},
"skinid": 0
},
{
"flags": {
"Reserved2": true
},
"grade": 0,
"ownerid": 76561############,
"pos": {
"x": "4.284505",
"y": "-0.1000009",
"z": "-0.115207"
},
"prefabname": "assets/prefabs/building core/foundation/foundation.prefab",
"rot": {
"x": "8.742278E-08",
"y": "0.9336258",
"z": "-2.622683E-07"
},
"skinid": 0
},
{
"flags": {
"Reserved2": true
},
"grade": 0,
"ownerid": 76561############,
"pos": {
"x": "0.08836793",
"y": "-0.1000009",
"z": "0.5113829"
},
"prefabname": "assets/prefabs/building core/foundation/foundation.prefab",
"rot": {
"x": "8.742279E-08",
"y": "0.9336258",
"z": "-8.742278E-08"
},
"skinid": 0
},
{
"flags": {
"Reserved2": true
},
"grade": 0,
"ownerid": 76561############,
"pos": {
"x": "1.873148",
"y": "-0.1000008",
"z": "-1.89997"
},
"prefabname": "assets/prefabs/building core/foundation/foundation.prefab",
"rot": {
"x": "0",
"y": "0.9336258",
"z": "-1.748456E-07"
},
"skinid": 0
},
{
"flags": {
"Reserved2": true
},
"grade": 0,
"ownerid": 76561############,
"pos": {
"x": "-0.5382093",
"y": "-0.1000009",
"z": "-3.684734"
},
"prefabname": "assets/prefabs/building core/foundation/foundation.prefab",
"rot": {
"x": "8.742278E-08",
"y": "2.504422",
"z": "-8.742277E-08"
},
"skinid": 0
}
],
"protocol": {
"items": 2,
"version": {
"Major": 4,
"Minor": 1,
"Patch": 32
}
}
}Best regards @Infinitynet