surfaceType: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
Killzone Kid (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns what surface is at the given position. |= Description | | Returns what surface type is at the given position. |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[String]] <nowiki>=</nowiki> '''surfaceType''' | | [[String]] <nowiki>=</nowiki> '''surfaceType''' position |= Syntax | ||
|p1= | |p1= position: [[Array]] - format [[Position2D]] or [[Position3D]] in which case Z will be ignored|= Parameter 1 | ||
| [[String]] |= Return value | | [[String]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | |x1= <code>_surface <nowiki>=</nowiki> [[surfaceType]] [4500, 4500];</code>|= EXAMPLE1 | ||
|x2= <code>_surface <nowiki>=</nowiki> [[surfaceType]] [[position]] [[player]];</code>|= EXAMPLE2 | |||
____________________________________________________________________________________________ | |||
| [[surfaceIsWater]], [[surfaceNormal]] |= See also | |||
}} | }} |
Revision as of 10:13, 31 August 2013
Description
- Description:
- Returns what surface type is at the given position.
- Groups:
- Uncategorised
Syntax
- Syntax:
- String = surfaceType position
- Parameters:
- position: Array - format Position2D or Position3D in which case Z will be ignored
- Return Value:
- String
Examples
- Example 1:
_surface = surfaceType [4500, 4500];
- Example 2:
_surface = surfaceType position player;
Additional Information
- See also:
- surfaceIsWatersurfaceNormal
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
- Posted on February 05, 2010 - 01:06
- MaestrO.fr
- In ArmA 2 returned value is "#UTGRASS" for natural surface and "#UTCONCRETE" for urban surface.
- Posted on December 16, 2006 - 23:45
- Kronzky
- Only seems to return either "#GRASSSOUTH" or "#GRASSGENERAL", even when you're in a building or in water.
- Posted on December 30, 2006 - 16:12
- VictorF
- Another returned value is "#SANDGENERAL". However, when providing an exact [x,y] position the "surfaceType" function seems to return the general surface type of the environment rather than the exact type on that given position.