surfaceType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2")
m (Update types)
Line 10: Line 10:
See the spoiler for surface types:  
See the spoiler for surface types:  
<spoiler>
<spoiler>
<pre>
* Default
A3 1.28:
* Water
 
* SurfRoadDirt
"#GdtStratisConcrete"
* SurfRoadConcrete
"#GdtStratisDryGrass"
* SurfRoadTarmac
"#GdtStratisGreenGrass"
* SurfWood
"#GdtStratisRocky"
* SurfMetal
"#GdtStratisForestPine"
* SurfRoofTin
"#GdtStratisBeach"
* SurfRoofTiles
"#GdtStratisDirt"
* SurfIntWood
"#GdtVRsurface01"
* SurfIntConcrete
"#GdtDirt"
* SurfIntTiles
"#GdtGrassGreen"
* SurfIntMetal
"#GdtGrassDry"
* SurfWater
"#GdtSoil"
* TEST_SurfNormal
"#GdtThorn"
* GdtStratisConcrete
"#GdtStony"
* GdtStratisBeach
"#GdtConcrete"
* GdtStratisDirt
"#GdtMarsh"
* GdtStratisSeabedCluttered
"#GdtBeach"
* GdtStratisSeabed
"#GdtSeabed"
* GdtStratisDryGrass
"#GdtDead"
* GdtStratisGreenGrass
 
* GdtStratisRocky
A3 1.66:
* GdtStratisThistles
"#Default"
* GdtStratisForestPine
"#Water"
* GdtRubble
"#SurfRoadDirt"
* GdtForestPine
"#SurfRoadConcrete"
* GdtConcrete
"#SurfRoadTarmac"
* GdtSoil
"#SurfWood"
* GdtBeach
"#SurfMetal"
* GdtRock
"#SurfRoofTin"
* GdtDead
"#SurfRoofTiles"
* GdtDirt
"#SurfIntWood"
* GdtDesert
"#SurfIntConcrete"
* GdtGrassGreen
"#SurfIntTiles"
* GdtGrassDry
"#SurfIntMetal"
* GdtGrassWild
"#SurfWater"
* GdtWeed
"#TEST_SurfNormal"
* GdtWildField
"#GdtStratisConcrete"
* GdtThorn
"#GdtStratisBeach"
* GdtStony
"#GdtStratisDirt"
* GdtStonyThistle
"#GdtStratisSeabedCluttered"
* GdtMud
"#GdtStratisSeabed"
* GdtMarsh
"#GdtStratisDryGrass"
* GdtSeabed
"#GdtStratisGreenGrass"
* concrete
"#GdtStratisRocky"
* concrete_out
"#GdtStratisThistles"
* concrete_inside
"#GdtStratisForestPine"
* dirtrunway
"#GdtRubble"
* road
"#GdtForestPine"
* floor
"#GdtConcrete"
* floor_inside
"#GdtSoil"
* carpet_inside
"#GdtBeach"
* carpet
"#GdtRock"
* mud
"#GdtDead"
* concrete_hall
"#GdtDirt"
* stones
"#GdtDesert"
* cardboard
"#GdtGrassGreen"
* lino
"#GdtGrassDry"
* steel
"#GdtGrassWild"
* trash
"#GdtWeed"
* parquet
"#GdtWildField"
* sand
"#GdtThorn"
* metalPlate
"#GdtStony"
* woodenFloor
"#GdtStonyThistle"
* planks
"#GdtMud"
* planks_inside
"#GdtMarsh"
* grid
"#GdtSeabed"
* rubble
"#concrete"
* BuildingRubble
"#concrete_out"
* tiling
"#concrete_inside"
* wavyMetal
"#dirtrunway"
* GdtVRsurface01
"#road"
* surf_metal
"#floor"
* surf_roadconcrete
"#floor_inside"
* surf_roaddirt
"#carpet_inside"
* surf_roadtarmac
"#carpet"
* surf_rooftiles
"#mud"
* surf_rooftin
"#concrete_hall"
* surf_wood
"#stones"
* surfint_concrete
"#cardboard"
* surfint_metal
"#lino"
* surfint_tiles
"#steel"
* surfint_wood
"#trash"
* road_exp
"#parquet"
* sand_exp
"#sand"
* SurfRoadDirt_exp
"#metalPlate"
* SurfRoadConcrete_exp
"#woodenFloor"
* SurfRoadTarmac_exp
"#planks"
* SurfTrailDirt_exp
"#planks_inside"
* concrete_exp
"#grid"
* concrete_in_exp
"#rubble"
* concrete_hall_exp
"#BuildingRubble"
* floor_exp
"#tiling"
* floor_in_exp
"#wavyMetal"
* stones_exp
"#GdtVRsurface01"
* planks_in_exp
"#surf_metal"
* planks_exp
"#surf_roadconcrete"
* softwood_in_exp
"#surf_roaddirt"
* steel_exp
"#surf_roadtarmac"
* metalPlate_exp
"#surf_rooftiles"
* metalPlatePressed_exp
"#surf_rooftin"
* metalPlate_in_exp
"#surf_wood"
* grid_exp
"#surfint_concrete"
* wavyMetal_exp
"#surfint_metal"
* carpet_exp
"#surfint_tiles"
* carpet_in_exp
"#surfint_wood"
* mat_in_exp
"#road_exp"
* mud_exp
"#sand_exp"
* straw_exp
"#SurfRoadDirt_exp"
* cardboard_exp
"#SurfRoadConcrete_exp"
* lino_in_exp
"#SurfRoadTarmac_exp"
* lino_exp
"#SurfTrailDirt_exp"
* roof_tiles_exp
"#concrete_exp"
* trash_exp
"#concrete_in_exp"
* rubble_exp
"#concrete_hall_exp"
* BuildingRubble_exp
"#floor_exp"
* GdtForestMalden
"#floor_in_exp"
* GdtGrassShort
"#stones_exp"
* GdtGrassTall
"#planks_in_exp"
* GdtGrassLong
"#planks_exp"
* GdtVolcanoBeach
"#softwood_in_exp"
* GdtSeabedExp
"#steel_exp"
* GdtRedDirt
"#metalPlate_exp"
* GdtAsphalt
"#metalPlatePressed_exp"
* GdtField
"#metalPlate_in_exp"
* GdtForest
"#grid_exp"
* GdtVolcano
"#wavyMetal_exp"
* GdtCliff
"#carpet_exp"
* SurfRoadDirt_Enoch
"#carpet_in_exp"
* SurfRoadTarmac1_Enoch
"#mat_in_exp"
* SurfRoadTarmac2_Enoch
"#mud_exp"
* SurfRoadTarmac3_Enoch
"#straw_exp"
* SurfTrailDirt_Enoch
"#cardboard_exp"
* GdtKLDirt
"#lino_in_exp"
* GdtKLGrass1
"#lino_exp"
* GdtKLGrass2
"#roof_tiles_exp"
* GdtKLForestCon
"#trash_exp"
* GdtKLForestDec
"#rubble_exp"
* GdtKlSoil
"#BuildingRubble_exp"
* GdtKlTarmac
"#GdtGrassShort"
* GdtKlWeatheredTarmac
"#GdtGrassTall"
* GdtKLCobblestone
"#GdtGrassLong"
* GdtKlField
"#GdtVolcanoBeach"
* GdtKlStubble
"#GdtRedDirt"
"#GdtAsphalt"
"#GdtField"
"#GdtForest"
"#GdtVolcano"
"#GdtCliff"
</pre>
</spoiler>|DESCRIPTION=
</spoiler>|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 10:08, 9 March 2020

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

Description

Description:
Returns what surface type is at the given position.

See the spoiler for surface types:
  • 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:
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:
surfaceIsWatersurfaceNormalgetAllEnvSoundControllers

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.

Bottom Section