Jump to content
obrien979

Placing Objects at Supplied Gird Locations

Recommended Posts

I am looking for a way to place an object at a grid location that was given to me.  I was given grids (for example 114063) to place objects at on the Tanoa map, but I can not figure out how to find this grids in the Eden Editor.

 

TIA

Share this post


Link to post
Share on other sites
17 hours ago, davidoss said:

(["114063"] call BIS_fnc_gridToPos) param [0,[]]

 

How exactly would this be used? Where do I put this script at?

Share this post


Link to post
Share on other sites

in editor

Tolls ---> Debug Console ----> watch line

 

in preview

ESC ----> execute field:

_pos = ((["114063"] call BIS_fnc_gridToPos) param [0,[]]);
_pos set [2,0];
player setPos _pos 

if you want to place any object using editor, place it anywhere and use one of method below to set it at desired pos:

 

Tolls ---> Debug Console ----> watch line

(["114063"] call BIS_fnc_gridToPos) param [0,[]]

it will return an array like this

[ nummber1 , nummber2 ]

 

Place your object anywhere and click it for edit

 

Method 1:

 

in Object transformation edit positions where

X will be nummber1, Y will be nummber2  and Z stays 0

Click OK.

Your object are moved to desired position.

 

Method 2:

in init field place:

if (isServer) then {this setPos [ nummber1 , nummber2, 0 ]};

 

 

Share this post


Link to post
Share on other sites

If you have only a few objects and don't need scripted placement, you can just press M to open the map and see the grid.

Share this post


Link to post
Share on other sites

The grid 114 063  means x= 11400 m from left border of the map, y = 6300 m from lower border of the map. The grid has 100 m precision here.

In attributes, 3den editor you can write these numbers (11400 , 6300) in position x , y of transformation tab (attributes of the object).

The x, y are also displayed with a sub-metric precision at bottom left of the editor.

In game, just look at the map cursor red coordinates, increase x then y if you're lost.

  • Thanks 1

Share this post


Link to post
Share on other sites
On 2/10/2018 at 5:51 PM, pierremgi said:

The grid 114 063  means x= 11400 m from left border of the map, y = 6300 m from lower border of the map. The grid has 100 m precision here.

In attributes, 3den editor you can write these numbers (11400 , 6300) in position x , y of transformation tab (attributes of the object).

The x, y are also displayed with a sub-metric precision at bottom left of the editor.

In game, just look at the map cursor red coordinates, increase x then y if you're lost.

 

This works alot better and its exactly what I needed.  Thank all for your responses.

Share this post


Link to post
Share on other sites
On 2/10/2018 at 5:26 PM, Greenfist said:

If you have only a few objects and don't need scripted placement, you can just press M to open the map and see the grid.

 

Unfortunately on Tanoa map I am unable to see the bottom grid numbers.

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

×