add3DENConnection: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1.56)
m (Text replacement - "\] +\[" to "] [")
 
(38 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


|arma3|= Game name
|game1= arma3
|version1= 1.56


|1.56|= Game version
|gr1= Eden Editor
____________________________________________________________________________________________


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


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


|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.
|= EXAMPLE1
____________________________________________________________________________________________


|  
|p2= from: [[Array]] of [[Eden Entity|Eden Entities]] - entities which are being connected
[[remove3DENConnection]]
 
[[get3DENConnections]]
|p3= to: [[Eden Entity]] - entity to which entities will be connected to
|= SEEALSO
| |= MPBEHAVIOUR
____________________________________________________________________________________________
}}


<h3 style='display:none'>Notes</h3>
|r1= [[Boolean]] - [[true]] If the connection was made
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<!-- DISCONTINUE Notes -->


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


<h3 style='display:none'>Bottom Section</h3>
|seealso= [[remove3DENConnection]] [[get3DENConnections]]
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Eden Editor|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:46, 5 May 2024

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 or on the Forums.
Only post proven facts here! Add Note