Arma 3 Scripting

BIS_fnc_richCurve_edenDrawControlPoints3D

  • Arma 3 v1.78

Function · Markdown · JSON · original wiki page

Description

Draws the control points (keys) of a rich curve in the Eden Editor 3D view. For every key of the curve it draws three 2 m long lines from the key's position, showing the key's orientation: its direction (green), its up vector (blue) and the cross product of both (light red). If 3D icons are visible in Eden (see get3DENIconsVisible), the key's index is also written 4 m below the key, in green for a selected key and in white otherwise.

The drawing lasts one frame only, so the function has to be called every frame. It is used internally by BIS_fnc_richCurve_edenTick, which calls it while the left Ctrl key is held down in Eden.

Note

The colour parameter described in the function's header is not used: the colours are fixed.

Syntax

[curve] call BIS_fnc_richCurve_edenDrawControlPoints3D

Parameters:

Returns: Nothing

Examples

Example 1

// as done by BIS_fnc_richCurve_edenTick on every frame
if (missionNamespace getVariable ["BIS_keyframe_controlPressed", false]) then
{
    [_curve] call BIS_fnc_richCurve_edenDrawControlPoints3D;
};

See also

BIS_fnc_richCurve_edenTick · BIS_fnc_richCurve_edenDrawCurve3D · BIS_fnc_richCurve_getKeys · BIS_fnc_key_edenIsSelected