Jump to content

Recommended Posts

So I came across a problem today.

I use Markers in one of my missions to set spawnpoints for loot which is spawned in groundweaponholders.

So far so good. I placed a few thousand of those and one of my friends wanted to help me so he placed some markers himself.

While playtesting i noticed that loot spawned on my markers, spawned correctly on the ground. 

BUT all loot spawned at his markers were like 10 meters in the air.

 

He created his markers on a seperate mission and i merged both together. After i noticed this problem i tried just straight up copying his markers and pasting them into my mission but same result.

The loot spawns, everywhere he created markers, exactly the same distance above ground as if they all have a height value that's 10 meters above 0.

I even went into the map and took one of his markers and held ALT-Leftclick and dragged it like i would if i wanted to adjust its height and it then spawned inside the ground instead of in the air.

 

I'm completly lost as to how i can fix this, without replacing all of his markers.

Share this post


Link to post
Share on other sites

Yes, markers do have a height value. It is however invisible in the editor so I am unsure how your friend managed to set it.

From the BIKI page on createMarker:

Quote

If position is given in 3D format, the z coordinate is stored with the marker and will be used when marker is passed to commands like createVehicle, createUnit, createAgent, createMine, setVehiclePosition for example. When marker is manually placed in the editor, z is 0, which means it is placed on the ground.

 

You can back up your mission and try this (untested) solution:

Load up your mission in the 3DEN editor, select all the markers with the problem, and run this code from the debug console:

{

	_pos = (_x get3DENAttribute "position") # 0;
	_x set3DENAttribute ["position",[_pos # 0,_pos # 1,(_pos # 2)-10]];
	
} forEach (get3DENSelected "marker");

 

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×