roadsConnectedTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(syntax, added example, see also cleanup)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''roadsConnectedTo''' road segment |= Syntax
| '''roadsConnectedTo''' roadSegment |= Syntax


|p1= road segment:  -  |= PARAMETER1  
|p1= roadSegment: [[Object]] - road segment |= PARAMETER1  


|p2= |= PARAMETER2  
|p2= |= PARAMETER2  
Line 18: Line 18:
|p3= |= PARAMETER3  
|p3= |= PARAMETER3  


| [[Array]] |= RETURNVALUE  
| [[Array]] of [[Object]]s - connected road segments|= RETURNVALUE  




|x1= <code>(example)</code>|= EXAMPLE1  
|x1= <code>_road = ([[player]] [[nearRoads]] 50) [[select]] 0;
_connectedRoads = [[roadsConnectedTo]] _road;</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________


| [[roadsConnectedTo_(VBS2)|roadsConnectedTo (VBS2)]], [[nearRoads_(VBS2)| nearRoads (VBS2)]], [[nearRoads]] |= SEEALSO  
| [[nearRoads]] |= SEEALSO  


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  

Revision as of 14:03, 20 April 2014

Hover & click on the images for description

Description

Description:
Find the road segments connected to the given road segment.
Groups:
Uncategorised

Syntax

Syntax:
roadsConnectedTo roadSegment
Parameters:
roadSegment: Object - road segment
Return Value:
Array of Objects - connected road segments

Examples

Example 1:
_road = (player nearRoads 50) select 0; _connectedRoads = roadsConnectedTo _road;

Additional Information

See also:
nearRoads

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

Notes

Bottom Section