add3DENConnection: Difference between revisions
m (note about correct type) |
m (fixed docs) |
||
| Line 6: | Line 6: | ||
|gr1= Eden Editor | |gr1= Eden Editor | ||
|descr= [[Eden Editor: Connecting|Connect]] entities together. Be aware to select the correct type of [[Eden Entity|Eden Entities]] | |descr= [[Eden Editor: Connecting|Connect]] entities together. Be aware to select the correct type of [[Eden Entity|Eden Entities]] for the connection type. | ||
|s1= [[add3DENConnection]] [type, from, to] | |s1= [[add3DENConnection]] [type, from, to] | ||
| Line 26: | Line 26: | ||
|x1= <sqf>add3DENConnection ["RandomStart", get3DENSelected "Object", "marker_0"];// Set random start on marker "marker_0" for all selected objects.</sqf> | |x1= <sqf>add3DENConnection ["RandomStart", get3DENSelected "Object", "marker_0"];// Set random start on marker "marker_0" for all selected objects.</sqf> | ||
|x2= <sqf> | |||
// Group all selected units to the first selected group | |||
private _group = get3DENSelected "Group" param [0, grpNull]; | |||
private _units = get3DENSelected "Objects"; | |||
add3DENConnection ["Group", _units, _group]; | |||
</sqf> | |||
|seealso= [[remove3DENConnection]] [[get3DENConnections]] | |seealso= [[remove3DENConnection]] [[get3DENConnections]] | ||
}} | }} | ||
Latest revision as of 17:48, 8 May 2026
Description
- Description:
- Connect entities together. Be aware to select the correct type of Eden Entities for the connection type.
- Groups:
- Eden Editor
Syntax
- Syntax:
- add3DENConnection [type, from, to]
- Parameters:
- type: String - connection class from "Cfg3DEN" >> "Connections":
- Group
- RandomStart
- Sync
- TriggerOwner
- WaypointActivation
- from: Array of Eden Entities - entities which are being connected
- to: Eden Entity - entity to which entities will be connected to
- Return Value:
- Boolean - true If the connection was made
Examples
- Example 1:
- add3DENConnection ["RandomStart", get3DENSelected "Object", "marker_0"];// Set random start on marker "marker_0" for all selected objects.
- Example 2:
- // Group all selected units to the first selected group private _group = get3DENSelected "Group" param [0, grpNull]; private _units = get3DENSelected "Objects"; add3DENConnection ["Group", _units, _group];
Additional Information
- See also:
- remove3DENConnection get3DENConnections
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note