surfaceType: Difference between revisions
Jump to navigation
Jump to search
Waffle SS. (talk | contribs) m (added seabed) |
(added more surface types) |
||
Line 59: | Line 59: | ||
"#GdtSeabed" | "#GdtSeabed" | ||
"#GdtDead" | "#GdtDead" | ||
</pre> | |||
<dd class="notedate">Posted on 12 Jan 2017 | |||
<dt class="note">[[User:ArmAtec|ArmAtec]]<dd class="note"> | |||
(A3 1.66) Surface types: | |||
<pre> | |||
"#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" | |||
"#GdtGrassShort" | |||
"#GdtGrassTall" | |||
"#GdtGrassLong" | |||
"#GdtVolcanoBeach" | |||
"#GdtRedDirt" | |||
"#GdtAsphalt" | |||
"#GdtField" | |||
"#GdtForest" | |||
"#GdtVolcano" | |||
"#GdtCliff" | |||
</pre> | </pre> | ||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Scripting Commands|SURFACETYPE]] | [[Category:Scripting Commands|SURFACETYPE]] |
Revision as of 13:51, 12 January 2017
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" "#GdtSeabed" "#GdtDead"
- Posted on 12 Jan 2017
- ArmAtec
-
(A3 1.66) 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" "#GdtGrassShort" "#GdtGrassTall" "#GdtGrassLong" "#GdtVolcanoBeach" "#GdtRedDirt" "#GdtAsphalt" "#GdtField" "#GdtForest" "#GdtVolcano" "#GdtCliff"