surfaceType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(→‎note: surface types)
Line 36: Line 36:
<dd class="notedate">Posted on December 30, 2006 - 16:12
<dd class="notedate">Posted on December 30, 2006 - 16:12
<dt class="note">'''[[User:VictorF|VictorF]]'''<dd class="note">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.
<dt class="note">'''[[User:VictorF|VictorF]]'''<dd class="note">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.
 
<dd class="notedate">Posted on 12 Sep 2014
<dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]<dd class="note">
(A3 1.28) Surface types:
<pre>
"#GdtStratisConcrete"
"#GdtStratisDryGrass"
"#GdtStratisGreenGrass"
"#GdtStratisRocky"
"#GdtStratisForestPine"
"#GdtStratisBeach"
"#GdtStratisDirt"
"#GdtVRsurface01"
"#GdtDirt"
"#GdtGrassGreen"
"#GdtGrassDry"
"#GdtSoil"
"#GdtThorn"
"#GdtStony"
"#GdtConcrete"
"#GdtMarsh"
"#GdtBeach"
"#GdtDead"
</pre>
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 02:54, 12 September 2014

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

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.
Posted on 12 Sep 2014
ffur2007slx2_5
(A3 1.28) Surface types:
"#GdtStratisConcrete"
"#GdtStratisDryGrass"
"#GdtStratisGreenGrass"
"#GdtStratisRocky"
"#GdtStratisForestPine"
"#GdtStratisBeach"
"#GdtStratisDirt"
"#GdtVRsurface01"
"#GdtDirt"
"#GdtGrassGreen"
"#GdtGrassDry"
"#GdtSoil"
"#GdtThorn"
"#GdtStony"
"#GdtConcrete"
"#GdtMarsh"
"#GdtBeach"
"#GdtDead"

Bottom Section