surfaceType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *ofpe * * *\| *([0-1]\.[0-9]{2}) * \|game2" to "|game1= ofpe |version1= $1 |game2")
m (Add Columns template usage)
Line 24: Line 24:
<br>
<br>
{{Feature | Informative | The command returns surface type of the ground, even underneath objects such as buildings and roads}}
{{Feature | Informative | The command returns surface type of the ground, even underneath objects such as buildings and roads}}
<spoiler text="Show surface types (ArmA)">
<spoiler text="Show surface types (Armed Assault)">
* #GRASSSOUTH
* #GRASSSOUTH
* #GRASSGENERAL
* #GRASSGENERAL
Line 34: Line 34:
</spoiler>
</spoiler>
<spoiler text="Show surface types (Arma 3)">
<spoiler text="Show surface types (Arma 3)">
<div style="columns: 4; -moz-columns: 4">
{{Columns|4|
* BuildingRubble
* BuildingRubble_exp
* cardboard
* cardboard_exp
* carpet
* carpet_exp
* carpet_inside
* carpet_in_exp
* concrete
* concrete_exp
* concrete_hall
* concrete_hall_exp
* concrete_inside
* concrete_in_exp
* concrete_out
* Default
* Default
* Water
* dirtrunway
* SurfRoadDirt
* floor
* SurfRoadConcrete
* floor_exp
* SurfRoadTarmac
* floor_inside
* SurfWood
* floor_in_exp
* SurfMetal
* GdtAsphalt
* SurfRoofTin
* GdtBeach
* SurfRoofTiles
* GdtCliff
* SurfIntWood
* GdtConcrete
* SurfIntConcrete
* GdtDead
* SurfIntTiles
* GdtDesert
* SurfIntMetal
* GdtDirt
* SurfWater
* GdtField
* TEST_SurfNormal
* GdtForest
* GdtForestMalden
* GdtForestPine
* GdtGrassDry
* GdtGrassGreen
* GdtGrassLong
* GdtGrassShort
* GdtGrassTall
* GdtGrassWild
* GdtKLCobblestone
* GdtKLDirt
* GdtKlField
* GdtKLForestCon
* GdtKLForestDec
* GdtKLGrass1
* GdtKLGrass2
* GdtKlSoil
* GdtKlStubble
* GdtKlTarmac
* GdtKlWeatheredTarmac
* GdtMarsh
* GdtMud
* GdtRedDirt
* GdtRock
* GdtRubble
* GdtSeabed
* GdtSeabedExp
* GdtSoil
* GdtStony
* GdtStonyThistle
* GdtStratisBeach
* GdtStratisConcrete
* GdtStratisConcrete
* GdtStratisBeach
* GdtStratisDirt
* GdtStratisDirt
* GdtStratisSeabedCluttered
* GdtStratisSeabed
* GdtStratisDryGrass
* GdtStratisDryGrass
* GdtStratisForestPine
* GdtStratisGreenGrass
* GdtStratisGreenGrass
* GdtStratisRocky
* GdtStratisRocky
* GdtStratisSeabed
* GdtStratisSeabedCluttered
* GdtStratisThistles
* GdtStratisThistles
* GdtStratisForestPine
* GdtThorn
* GdtRubble
* GdtVolcano
* GdtForestPine
* GdtVolcanoBeach
* GdtConcrete
* GdtVRsurface01
* GdtSoil
* GdtBeach
* GdtRock
* GdtDead
* GdtDirt
* GdtDesert
* GdtGrassGreen
* GdtGrassDry
* GdtGrassWild
* GdtWeed
* GdtWeed
* GdtWildField
* GdtWildField
* GdtThorn
* grid
* GdtStony
* grid_exp
* GdtStonyThistle
* lino
* GdtMud
* lino_exp
* GdtMarsh
* lino_in_exp
* GdtSeabed
* mat_in_exp
* concrete
* metalPlate
* concrete_out
* metalPlatePressed_exp
* concrete_inside
* metalPlate_exp
* dirtrunway
* metalPlate_in_exp
* road
* floor
* floor_inside
* carpet_inside
* carpet
* mud
* mud
* concrete_hall
* mud_exp
* stones
* cardboard
* lino
* steel
* trash
* parquet
* parquet
* sand
* metalPlate
* woodenFloor
* planks
* planks
* planks_exp
* planks_inside
* planks_inside
* grid
* planks_in_exp
* road
* road_exp
* roof_tiles_exp
* rubble
* rubble
* BuildingRubble
* rubble_exp
* tiling
* sand
* wavyMetal
* sand_exp
* GdtVRsurface01
* softwood_in_exp
* surf_metal
* steel
* surf_roadconcrete
* steel_exp
* surf_roaddirt
* stones
* surf_roadtarmac
* stones_exp
* surf_rooftiles
* straw_exp
* surf_rooftin
* SurfIntConcrete
* surf_wood
* SurfIntMetal
* SurfIntTiles
* SurfIntWood
* surfint_concrete
* surfint_concrete
* surfint_metal
* surfint_metal
* surfint_tiles
* surfint_tiles
* surfint_wood
* surfint_wood
* road_exp
* SurfMetal
* sand_exp
* SurfRoadConcrete
* SurfRoadDirt_exp
* SurfRoadConcrete_exp
* SurfRoadConcrete_exp
* SurfRoadTarmac_exp
* SurfRoadDirt
* 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
* SurfRoadDirt_Enoch
* SurfRoadDirt_exp
* SurfRoadTarmac
* SurfRoadTarmac1_Enoch
* SurfRoadTarmac1_Enoch
* SurfRoadTarmac2_Enoch
* SurfRoadTarmac2_Enoch
* SurfRoadTarmac3_Enoch
* SurfRoadTarmac3_Enoch
* SurfRoadTarmac_exp
* SurfRoofTiles
* SurfRoofTin
* SurfTrailDirt_Enoch
* SurfTrailDirt_Enoch
* GdtKLDirt
* SurfTrailDirt_exp
* GdtKLGrass1
* SurfWater
* GdtKLGrass2
* SurfWood
* GdtKLForestCon
* surf_metal
* GdtKLForestDec
* surf_roadconcrete
* GdtKlSoil
* surf_roaddirt
* GdtKlTarmac
* surf_roadtarmac
* GdtKlWeatheredTarmac
* surf_rooftiles
* GdtKLCobblestone
* surf_rooftin
* GdtKlField
* surf_wood
* GdtKlStubble
* TEST_SurfNormal
</div>
* tiling
* trash
* trash_exp
* Water
* wavyMetal
* wavyMetal_exp
* woodenFloor
}}
</spoiler>
</spoiler>


|s1= [[surfaceType]] position
|s1= [[surfaceType]] position


|p1= position: [[Array]] - format [[Position2D]] or [[Position3D]] in which case Z will be ignored
|p1= position: [[Array]] - format [[Position2D]] or [[Position3D]] in which case Z will be ignored
Line 195: Line 195:
|seealso= [[surfaceTexture]], [[surfaceIsWater]], [[surfaceNormal]], [[getAllEnvSoundControllers]]
|seealso= [[surfaceTexture]], [[surfaceIsWater]], [[surfaceNormal]], [[getAllEnvSoundControllers]]
}}
}}
{{GameCategory|ofpe|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 18:22, 14 June 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

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