roadsConnectedTo: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
(syntax, added example, see also cleanup) |
||
Line 10: | Line 10: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''roadsConnectedTo''' | | '''roadsConnectedTo''' roadSegment |= Syntax | ||
|p1= road segment | |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>( | |x1= <code>_road = ([[player]] [[nearRoads]] 50) [[select]] 0; | ||
_connectedRoads = [[roadsConnectedTo]] _road;</code>|= EXAMPLE1 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[nearRoads]] |= SEEALSO | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR |
Revision as of 14:03, 20 April 2014
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