Hey! I'm implementing waypoint synchronization in EdenOnline and ran into a limitation: there doesn't seem to be a way to check whether an Eden waypoint is attached to an object, or retrieve which object it is attached to.
I could read this information directly from mission.sqm, but when synchronizing waypoints between clients, I would need to manually modify mission.sqm using extension, and that would work only if its unbinarized, since there doesn't appear to be a scripting command to attach a waypoint to an object at runtime.
Would it be possible to implement this by either:
1. Extending waypointAttachVehicle / waypointAttachedVehicle and waypointAttachObject / waypointAttachedObject to support Eden waypoints.
2. Adding support for an Eden connection type, for example:
add3DENConnection ["WaypointAttach", waypoint, unit]
and retrieving it through:
get3DENConnections _waypoint
Here's an example demonstrating the current behavior:
_blueUnit = create3DENEntity ["Object", "B_Soldier_F", screenToWorld [0.5, 0.5]];
_blueGroup = group _blueUnit;
_redUnit = create3DENEntity ["Object", "O_Soldier_F", screenToWorld [1, 0.5]];;
_redGroup = group _redUnit;
_waypointPos = (_redUnit get3DENAttribute "Position") select 0;
_waypointPos = _waypointPos vectorAdd [0,0,0.5]; // Shift waypoint to the center of the unit
_waypoint = _blueGroup create3DENEntity ["Waypoint", "Destroy", _waypointPos];
_waypoint waypointAttachVehicle (vehicle _redUnit); // Doesn't work
_waypoint waypointAttachObject (vehicle _redUnit); // Doesn't work
diag_log (get3DENConnections _waypoint); // [["Group", B Alpha 1-1]]
diag_log (get3DENConnections _blueUnit); // [["Group", B Alpha 1-1]]
diag_log (get3DENConnections _blueGroup); // [["Group", B Alpha 1-1:1], ["Waypoint", [B Alpha 1-1, 0]]]
Currently, get3DENConnections only seems to expose the waypoint's group connection, with no information about the object it is attached to.