surfaceType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma1 |Game name=
| arma1


|1.00|Game version=
|1.00


|gr1= Positions |GROUP1=
|gr1= Positions


| Returns what surface type is at the given position. For surface texture see [[surfaceTexture]] command.<br>
| Returns what surface type is at the given position. For surface texture see [[surfaceTexture]] command.<br>
Line 167: Line 167:
* GdtKlStubble
* GdtKlStubble
</div>
</div>
</spoiler>|DESCRIPTION=
</spoiler>


| [[surfaceType]] position |SYNTAX=
| [[surfaceType]] position


|p1= position: [[Array]] - format [[Position2D]] or [[Position3D]] in which case Z will be ignored |PARAMETER1=
|p1= position: [[Array]] - format [[Position2D]] or [[Position3D]] in which case Z will be ignored


| [[String]] |RETURNVALUE=
| [[String]]


|x1= <code>[[private]] _surface = [[surfaceType]] [4500, 4500];</code> |EXAMPLE1=
|x1= <code>[[private]] _surface = [[surfaceType]] [4500, 4500];</code>


|x2= <code>[[hint]] [[surfaceType]] [[position]] [[player]];</code> |EXAMPLE2=
|x2= <code>[[hint]] [[surfaceType]] [[position]] [[player]];</code>


| [[surfaceTexture]], [[surfaceIsWater]], [[surfaceNormal]], [[getAllEnvSoundControllers]] |SEEALSO=
| [[surfaceTexture]], [[surfaceIsWater]], [[surfaceNormal]], [[getAllEnvSoundControllers]]
}}
}}
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>

Revision as of 12:25, 18 January 2021

Hover & click on the images for description

Description

Description:
Returns what surface type is at the given position. For surface texture see surfaceTexture command.

The command returns surface type of the ground, even underneath objects such as buildings and roads

  • #GRASSSOUTH
  • #GRASSGENERAL
  • #SANDGENERAL
  • #UTGRASS - for natural surfaces
  • #UTCONCRETE - for urban surfaces

  • Default
  • Water
  • SurfRoadDirt
  • SurfRoadConcrete
  • SurfRoadTarmac
  • SurfWood
  • SurfMetal
  • SurfRoofTin
  • SurfRoofTiles
  • SurfIntWood
  • SurfIntConcrete
  • SurfIntTiles
  • SurfIntMetal
  • SurfWater
  • TEST_SurfNormal
  • GdtStratisConcrete
  • GdtStratisBeach
  • GdtStratisDirt
  • GdtStratisSeabedCluttered
  • GdtStratisSeabed
  • GdtStratisDryGrass
  • GdtStratisGreenGrass
  • GdtStratisRocky
  • GdtStratisThistles
  • GdtStratisForestPine
  • GdtRubble
  • GdtForestPine
  • GdtConcrete
  • GdtSoil
  • GdtBeach
  • GdtRock
  • GdtDead
  • GdtDirt
  • GdtDesert
  • GdtGrassGreen
  • GdtGrassDry
  • GdtGrassWild
  • GdtWeed
  • GdtWildField
  • GdtThorn
  • GdtStony
  • GdtStonyThistle
  • GdtMud
  • GdtMarsh
  • GdtSeabed
  • concrete
  • concrete_out
  • concrete_inside
  • dirtrunway
  • road
  • floor
  • floor_inside
  • carpet_inside
  • carpet
  • mud
  • concrete_hall
  • stones
  • cardboard
  • lino
  • steel
  • trash
  • parquet
  • sand
  • metalPlate
  • woodenFloor
  • planks
  • planks_inside
  • grid
  • rubble
  • BuildingRubble
  • tiling
  • wavyMetal
  • GdtVRsurface01
  • surf_metal
  • surf_roadconcrete
  • surf_roaddirt
  • surf_roadtarmac
  • surf_rooftiles
  • surf_rooftin
  • surf_wood
  • surfint_concrete
  • surfint_metal
  • surfint_tiles
  • surfint_wood
  • road_exp
  • sand_exp
  • SurfRoadDirt_exp
  • SurfRoadConcrete_exp
  • SurfRoadTarmac_exp
  • SurfTrailDirt_exp
  • concrete_exp
  • concrete_in_exp
  • concrete_hall_exp
  • floor_exp
  • floor_in_exp
  • stones_exp
  • planks_in_exp
  • planks_exp
  • softwood_in_exp
  • steel_exp
  • metalPlate_exp
  • metalPlatePressed_exp
  • metalPlate_in_exp
  • grid_exp
  • wavyMetal_exp
  • carpet_exp
  • carpet_in_exp
  • mat_in_exp
  • mud_exp
  • straw_exp
  • cardboard_exp
  • lino_in_exp
  • lino_exp
  • roof_tiles_exp
  • trash_exp
  • rubble_exp
  • BuildingRubble_exp
  • GdtForestMalden
  • GdtGrassShort
  • GdtGrassTall
  • GdtGrassLong
  • GdtVolcanoBeach
  • GdtSeabedExp
  • GdtRedDirt
  • GdtAsphalt
  • GdtField
  • GdtForest
  • GdtVolcano
  • GdtCliff
  • SurfRoadDirt_Enoch
  • SurfRoadTarmac1_Enoch
  • SurfRoadTarmac2_Enoch
  • SurfRoadTarmac3_Enoch
  • SurfTrailDirt_Enoch
  • GdtKLDirt
  • GdtKLGrass1
  • GdtKLGrass2
  • GdtKLForestCon
  • GdtKLForestDec
  • GdtKlSoil
  • GdtKlTarmac
  • GdtKlWeatheredTarmac
  • GdtKLCobblestone
  • GdtKlField
  • GdtKlStubble
↑ Back to spoiler's top
Groups:
Positions

Syntax

Syntax:
surfaceType position
Parameters:
position: Array - format Position2D or Position3D in which case Z will be ignored
Return Value:
String

Examples

Example 1:
private _surface = surfaceType [4500, 4500];
Example 2:
hint surfaceType position player;

Additional Information

See also:
surfaceTexturesurfaceIsWatersurfaceNormalgetAllEnvSoundControllers

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

Bottom Section