Page MenuHomeFeedback Tracker

Add a command to attach entity to cursor in eden editor
New, NormalPublic

Description

Currently there is no way to simulate the native eden editor placement behaviour e.g. selecting an entity from the asset browser and it then being attached to the cursor, highlighting surfaces where the entity is going to be placed etc.

This would allow custom UIs to have the same placement behaviour as native eden editor.

set3DENAttachedCursorEntity <CLASSNAME>;

Optionally, to simulate the placement of compositions.

set3DENAttachedCursorEntity [class1, offset1, class2, offset2, classN, offsetN];

where offset would be an array with an offset from the cursor position.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Eden Editor

Event Timeline

R3vo created this task.Mon, Jul 1, 11:44 PM
R3vo updated the task description. (Show Details)Mon, Jul 1, 11:47 PM
dedmen set Ref Ticket to AIII-56463.Tue, Jul 2, 4:08 PM
dedmen added a subscriber: dedmen.EditedTue, Jul 2, 6:30 PM
[] spawn {
sleep 2;
set3DENAttachedCursorEntity createHashMapFromArray [["type", "unit"], ["classname", "B_Survivor_F"]];
}
set3DENAttachedCursorEntity createHashMapFromArray [["type", "marker"], ["classname", "mil_pickup"], ["markertype", "icon"]];

Theoretically possible to add color to marker. Not implemented now.

For now only this, unit and marker.
Later on we can support type's like trigger, module, group, composition (steam or custom or just array of objects to dynamically create one in script).

Options:
type="unit"

  • classname: string

type="marker"

  • classname: string
  • markertype: string (icon, rectangle, ellipse)