add3DENConnection: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "<dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <!-- DISCONTINUE Notes -->" to "")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


|arma3
|game1= arma3
 
|version1= 1.56
|1.56


|gr1= Eden Editor
|gr1= Eden Editor


| [[Eden Editor: Connecting|Connect]] entities together.
|descr= [[Eden Editor: Connecting|Connect]] entities together.


| '''add3DENConnection''' [type, from, to]
|s1= [[add3DENConnection]]  [type, from, to]
|p1= type: [[String]] - connection class from ''Cfg3DEN >> Connections''
|p2= from: [[Array]] of [[Eden Entity|Eden Entities]] - entities which are being connected
|p3= to: [[Eden Entity]]- entity to which entities will be connected to
| [[Boolean]] - [[true]] if the connection was made


|x1= <code>[[add3DENConnection]] ["RandomStart",[[get3DENSelected]] "Object","marker_0"]</code>
|p1= type: [[String]] - Connection class from ''Cfg3DEN >> Connections''
Set random start on marker "marker_0" for all selected objects.


|p2= from: [[Array]] of [[Eden Entity|Eden Entities]] - Entities which are being connected


|  
|p3= to: [[Eden Entity]] - Entity to which entities will be connected to
[[remove3DENConnection]]
[[get3DENConnections]]


}}
|r1= [[Boolean]] - [[true]] If the connection was made


|x1= <sqf>add3DENConnection ["RandomStart", get3DENSelected "Object", "marker_0"];// Set random start on marker "marker_0" for all selected objects.</sqf>


 
|seealso= [[remove3DENConnection]] [[get3DENConnections]]
 
}}
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 10:21, 13 May 2022

Hover & click on the images for description

Description

Description:
Connect entities together.
Groups:
Eden Editor

Syntax

Syntax:
add3DENConnection [type, from, to]
Parameters:
type: String - Connection class from Cfg3DEN >> Connections
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.

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