• 0
JnKTechstuff

Custom Objects not at the right elevation

Question

Map: AiA United Sahrani

To start here are some images of my placed terrain objects:

 

Editor:

d9465e20a5c2e030bf2263105fd4db93.jpg

 

In Game:

6d74731f9d05caa707f39bec5e7bb8a1.jpg

 

You can see that the objects look fine in the editor but in game they are not placed correctly.

Now going through the initserver.sqf I see this line:

_object setPosASL (_x select 1);

So ASL refers to AboveSeaLevel and I know that ATL is AboveTerrainLevel so I switch this to ATL and the objects are 200 meters into the air so that didnt work.

I have tried everything from importing into the mission.sqm to setting it to snap to terrain to setting it to snap to sea level to snap to surface, nothing works. I am using the M3Editor if that helps. I have tried to export relative also but that didnt work.

Here is my initserver.sqf:

Spoiler

private _objects = [
    ["Land_HBarrier_large",[9857.96,10002.9,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9863.03,9999.74,139.995],[[0.999372,-0.0354312,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9863.13,9992.62,139.995],[[0.999663,-0.0259777,0],[0,0,1]],[false,false]],
    ["ZavoraAnim",[9863.53,9983.88,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9859.71,9978.24,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9868.07,9978.63,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9868.16,9989.67,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_Razorwire_F",[10082.3,9926.88,136.024],[[0,0.996598,0.0824172],[0.00619533,-0.0824156,0.996579]],[false,false]],
    ["Land_Razorwire_F",[10060.4,9927,136.392],[[0,0.996956,0.0779617],[0.0196943,-0.0779466,0.996763]],[false,false]],
    ["Land_Net_Fence_8m_F",[9606.89,9926.8,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_Net_Fence_4m_F",[9600.93,9926.31,139.995],[[0.237273,-0.971443,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9849.72,10002.7,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9841.54,10002.4,139.995],[[-0.0182209,-0.999834,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9833.29,10002.5,139.995],[[0.0155542,0.999879,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9825.05,10002.5,139.995],[[0.0174816,0.999847,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9816.8,10002.5,139.995],[[0.0174816,0.999847,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9808.41,10002.4,139.995],[[0.0174816,0.999847,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9800.07,10002.3,139.995],[[0.0174816,0.999847,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9791.79,10002.2,139.995],[[0.0174816,0.999847,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9785.5,10002.2,139.995],[[0.0174816,0.999847,0],[0,0,1]],[false,false]],
    ["Land_HBarrier3",[9786.69,9978.66,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_HBarrier3",[9785.55,9978.63,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_HBarrier3",[9822.45,9977.7,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_HBarrier3",[9821.31,9977.67,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_LampAirport_F",[9784.7,9980.67,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_LampAirport_F",[9860.59,10000.7,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_CamoNetB_NATO_EP1",[9839.55,9950.4,138.213],[[-0.175906,-0.984407,0],[0,0,1]],[false,false]],
    ["Land_PortableLight_double_F",[9831.92,9964.92,140.076],[[-0.168958,0.985623,0],[0,0,1]],[false,false]],
    ["C130J_wreck_EP1",[9743.3,10025.5,139.995],[[0.999995,-0.00331072,0],[0,0,1]],[false,false]],
    ["Land_Letistni_hala",[9912.34,10001.1,133.185],[[0,0.960856,-0.277049],[-0.0137758,0.277022,0.960765]],[false,false]],
    ["CargoNet_01_barrels_F",[9746.28,10028.1,140.017],[[0,0.958006,0.286748],[-0.00059802,-0.286748,0.958006]],[false,false]],
    ["CargoNet_01_box_F",[9748.23,10024.6,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_PortableLight_double_F",[9847.58,9967.17,139.995],[[0.417068,0.908875,0],[0,0,1]],[false,false]],
    ["Land_PortableLight_double_F",[9850.88,9937.27,140.076],[[0.541804,-0.840505,0],[0,0,1]],[false,false]],
    ["Land_PortableLight_double_F",[9831.48,9937.49,139.995],[[-0.677264,-0.73574,0],[0,0,1]],[false,false]],
    ["Land_Wreck_HMMWV_F",[9842.01,9949.49,140.076],[[0.989963,0.141324,0],[0,0,1]],[false,false]],
    ["Land_ToolTrolley_01_F",[9837.67,9951.19,141.928],[[-0.862423,0.506188,0],[0,0,1]],[false,false]],
    ["Land_DrillAku_F",[9836.32,9949.02,142.003],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_Workbench_01_F",[9836.97,9949.47,142.126],[[-0.748382,-0.663268,0],[0,0,1]],[false,false]],
    ["Land_EngineCrane_01_F",[9838.71,9951.71,141.621],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_WeldingTrolley_01_F",[9837.66,9946.69,141.922],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_Wrench_F",[9836.36,9949.86,142.112],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9782.29,9997.01,139.995],[[-0.999783,0.0208244,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9782.51,9994.78,139.995],[[0.998853,-0.0478734,0],[0,0,1]],[false,false]],
    ["BlackhawkWreck",[9808.68,9955.53,140.076],[[-0.0353955,-0.999373,0],[0,0,1]],[false,false]],
    ["Land_Airport_Tower_F",[10027.8,10080.1,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Exile_Sign_AircraftCustoms",[9880.37,9998.37,139.995],[[-0.0141474,-0.9999,0],[0,0,1]],[false,false]],
    ["Exile_Sign_Aircraft",[9876.87,9998.33,139.995],[[0.0083695,-0.999965,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9872.01,9973.52,139.995],[[0.999803,0.0198537,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9875.38,9968.91,139.995],[[0.0476646,-0.998863,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9883.44,9969.46,139.995],[[0.0267668,-0.999642,0],[0,0,1]],[false,false]],
    ["Land_HBarrier_large",[9888.59,9972.97,139.995],[[0.999803,0.0198537,0],[0,0,1]],[false,false]],
    ["Exile_Sign_VehicleCustoms",[9881.47,9970.8,139.995],[[0.0392207,-0.999231,0],[0,0,1]],[false,false]],
    ["Exile_Sign_Vehicles",[9884.96,9971.02,139.995],[[0.016127,-0.99987,0],[0,0,1]],[false,false]],
    ["Exile_Sign_WasteDump",[9875.84,9972.98,139.995],[[-0.611239,-0.791446,0],[0,0,1]],[false,false]],
    ["Land_GarbageContainer_open_F",[9876.5,9971.22,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_GarbageBin_01_F",[9874.4,9974.62,139.995],[[-0.915466,-0.402396,0],[0,0,1]],[false,false]],
    ["Land_LampAirport_F",[9887.41,9971.24,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Exile_Sign_Armory",[9852.24,10000.8,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Exile_Sign_Equipment",[9845.48,10000.4,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_transport_crates_EP1",[9843.16,10000.6,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_CratesShabby_F",[9847.11,10000.7,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["AmmoCrates_NoInteractive_Large",[9840.05,9999.89,139.995],[[-0.185068,0.982726,0],[0,0,1]],[false,false]],
    ["Exile_Sign_SpecialOperations",[9838.46,10000.5,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["AmmoCrates_NoInteractive_Large",[9836.72,9999.6,139.995],[[-0.995968,0.0897054,0],[0,0,1]],[false,false]],
    ["B_Slingload_01_Ammo_F",[9849.32,9998.28,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["B_Slingload_01_Ammo_F",[9855.17,9998.27,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["B_Slingload_01_Ammo_F",[9852.58,9999.86,142.527],[[0.999385,-0.0350661,0],[0,0,1]],[false,false]],
    ["Land_Bricks_V4_F",[9829.75,9998.38,140.574],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_Timbers_F",[9831.26,10000.7,139.995],[[-0.998861,0.0477071,0],[0,0,1]],[false,false]],
    ["Exile_Sign_Hardware",[9831.48,9999.2,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_HelipadCivil_F",[9790.96,9990.32,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_HelipadCivil_F",[9803.31,9990.47,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_HelipadCivil_F",[9815.82,9990.45,139.995],[[0,1,0],[0,0,1]],[false,false]],
    ["Land_BagBunker_Tower_F",[10076.2,9933.62,136.71],[[0.0442767,0.99449,0.0950266],[0.0188972,-0.0959366,0.995208]],[false,false]],
    ["Land_CncBarrier_F",[10060.8,9927.95,136.415],[[-0.0231413,-0.999732,0],[0,0,1]],[false,false]],
    ["Land_CncBarrier_F",[10063.5,9927.9,136.369],[[-0.0193373,-0.999813,0],[0,0,1]],[false,false]],
    ["Land_CncBarrier_F",[10058.6,9928.95,136.511],[[-0.711155,-0.703035,0],[0,0,1]],[false,false]],
    ["Land_CncBarrier_F",[10057.7,9931.23,136.678],[[-0.998298,0.0583222,0],[0,0,1]],[false,false]],
    ["Land_CncBarrier_F",[10074.4,9927.4,136.168],[[-0.0245893,-0.999698,0],[0,0,1]],[false,false]],
    ["Land_CncBarrier_F",[10077,9927.36,136.115],[[-0.0206809,-0.999786,0],[0,0,1]],[false,false]],
    ["Land_CncBarrier_F",[10079.3,9928.22,136.143],[[0.657954,-0.753058,0],[0,0,1]],[false,false]],
    ["Land_CncBarrier_F",[10080.3,9930.49,136.31],[[0.999894,-0.0145384,0],[0,0,1]],[false,false]],
    ["Land_BagBunker_Tower_F",[9535.19,9932.65,139.995],[[0.0442846,0.999019,0],[0,0,1]],[false,false]],
    ["Land_CncBarrier_F",[9519.86,9926.98,139.995],[[-0.0231413,-0.999732,0],[0,0,1]],[false,false]],
    ["Land_CncBarrier_F",[9522.5,9926.94,139.995],[[-0.0193373,-0.999813,0],[0,0,1]],[false,false]],
    ["Land_CncBarrier_F",[9517.27,9927.07,139.995],[[0.0413316,0.999146,0],[0,0,1]],[false,false]],
    ["Land_CncBarrier_F",[9514.97,9926.35,139.995],[[0.583874,-0.811844,0],[0,0,1]],[false,false]],
    ["Land_CncBarrier_F",[9532.94,9926.68,139.995],[[0.999894,-0.0145384,0],[0,0,1]],[false,false]],
    ["Land_Axe_F",[9763.71,9963.16,140.047],[[-0.927328,-0.37425,0],[0,0,1]],[false,false]],
    ["Land_BagFence_Long_F",[9765.35,9976.3,139.995],[[-0.0306328,0.999531,0],[0,0,1]],[false,false]],
    ["Land_BagFence_Long_F",[9768.26,9976.39,139.995],[[-0.0306328,0.999531,0],[0,0,1]],[false,false]],
    ["Land_BagFence_Round_F",[9762.73,9975.61,139.995],[[0.694633,-0.719364,0],[0,0,1]],[false,false]],
    ["Land_BagFence_Round_F",[9770.77,9975.8,139.995],[[-0.679083,-0.734062,0],[0,0,1]],[false,false]],
    ["Land_BagFence_Round_F",[9755.3,9958.29,139.995],[[0.997739,-0.0672145,0],[0,0,1]],[false,false]],
    ["Land_BagFence_Round_F",[9756.71,9956.64,139.995],[[0.0781643,0.99694,0],[0,0,1]],[false,false]],
    ["Land_BagFence_Short_F",[9775.29,9958.27,139.995],[[-0.982421,-0.186678,0],[0,0,1]],[false,false]],
    ["Land_BagFence_Short_F",[9774.85,9956.81,139.995],[[0.747485,-0.664279,0],[0,0,1]],[false,false]],
    ["Land_BagFence_Short_F",[9773.31,9956.06,139.995],[[0.00968599,-0.999953,0],[0,0,1]],[false,false]],
    ["Land_BakedBeans_F",[9766.16,9975.01,140.051],[[0.612812,0.790229,0],[0,0,1]],[false,false]],
    ["Land_Basket_F",[9771.03,9960.59,140.051],[[0.312683,-0.949858,0],[0,0,1]],[false,false]],
    ["Land_Campfire_F",[9767.15,9965.89,139.995],[[0.452576,0.891726,0],[0,0,1]],[false,false]],
    ["Land_Camping_Light_F",[9766.19,9962.95,139.989],[[0.971552,0.236828,0],[0,0,1]],[false,false]],
    ["Land_CanisterFuel_F",[9763.66,9962.06,140.051],[[0.585224,0.810872,0],[0,0,1]],[false,false]],
    ["Land_CanisterPlastic_F",[9763.22,9975.39,140.051],[[-0.897643,-0.440723,0],[0,0,1]],[false,false]],
    ["Land_CanisterPlastic_F",[9762.76,9974.49,140.051],[[-0.283363,-0.959013,0],[0,0,1]],[false,false]],
    ["Land_Canteen_F",[9768,9975.21,140.051],[[-0.333575,0.942724,0],[0,0,1]],[false,false]],
    ["Land_Canteen_F",[9770.35,9961.99,140.051],[[0.297202,0.954815,0],[0,0,1]],[false,false]],
    ["Land_CerealsBox_F",[9767.13,9975.02,140.051],[[0.999385,-0.0350705,0],[0,0,1]],[false,false]],
    ["Land_CerealsBox_F",[9766.95,9975.13,140.051],[[0.92563,0.378431,0],[0,0,1]],[false,false]],
    ["Land_DuctTape_F",[9763.39,9974.68,140.051],[[0.986057,-0.166408,0],[0,0,1]],[false,false]],
    ["Land_GasCooker_F",[9768.69,9974.69,140.051],[[0.759714,-0.650257,0],[0,0,1]],[false,false]],
    ["Land_RiceBox_F",[9766.37,9975.02,140.051],[[-0.126024,0.992027,0],[0,0,1]],[false,false]],
    ["Land_RiceBox_F",[9766.18,9975.25,140.051],[[0.77662,0.62997,0],[0,0,1]],[false,false]],
    ["Land_Sack_F",[9772.04,9960.79,139.995],[[0.311415,0.950274,0],[0,0,1]],[false,false]],
    ["Land_Sacks_heap_F",[9769.21,9975.46,139.995],[[0.38521,0.922829,0],[0,0,1]],[false,false]],
    ["Land_Shovel_F",[9763.96,9975,140.059],[[0.596721,0.802449,0],[0,0,1]],[false,false]],
    ["Land_TentA_F",[9772.53,9966.02,139.995],[[0.998966,0.0454537,0],[0,0,1]],[false,false]],
    ["Land_TentA_F",[9771.54,9969.6,139.995],[[0.844866,0.534978,0],[0,0,1]],[false,false]],
    ["Land_TentA_F",[9772.07,9962.17,139.995],[[0.881303,-0.472551,0],[0,0,1]],[false,false]],
    ["Land_TinContainer_F",[9767.44,9964.34,140.052],[[-0.84103,-0.540989,0],[0,0,1]],[false,false]],
    ["Land_BottlePlastic_V2_F",[9766.43,9975.24,140.051],[[0.960187,0.279358,0],[0,0,1]],[false,false]],
    ["Land_WoodenBox_F",[9765.44,9967.58,140.051],[[0.704758,-0.709448,0],[0,0,1]],[false,false]],
    ["Land_WoodenLog_F",[9767.08,9963.95,140.051],[[0.975285,0.220951,0],[0,0,1]],[false,false]],
    ["Land_WoodPile_F",[9762.83,9962.98,139.995],[[0.0210044,0.999779,0],[0,0,1]],[false,false]]
];
{
    private _object = (_x select 0) createVehicle [0,0,0];
    _object setPosASL (_x select 1);
    _object setVectorDirAndUp (_x select 2);
    _object enableSimulationGlobal ((_x select 3) select 0);
    _object allowDamage ((_x select 3) select 1);
} forEach _objects;

Any and all help is appreciated! 

Also is there a difference between sahrani and united sahrani?

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0

Instead of doing this:

private _objects = [
    //Items go in here
];
{
    private _object = (_x select 0) createVehicle [0,0,0];
    _object setPosASL (_x select 1);
    _object setVectorDirAndUp (_x select 2);
    _object enableSimulationGlobal ((_x select 3) select 0);
    _object allowDamage ((_x select 3) select 1);
} forEach _objects;

Try changing it to this:

_objects =
[
	//Items go here
];

{
    private ["_object"];

    _object = (_x select 0) createVehicle [0,0,0];
    _object setDir (_x select 2);
    _object setPosATL (_x select 1);
    _object allowDamage false;
    _object enableSimulationGlobal false; // :)
}
forEach _objects;

 

Share this post


Link to post
Share on other sites
Advertisement
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.