Garry's Mod Wiki

Revision Difference

util.GetSurfaceData#519070

<function name="GetSurfaceData" parent="util" type="libraryfunc"> <description>Returns data of a surface property at given ID.</description> <realm>Shared</realm> <args> <arg name="id" type="number">Surface property ID. You can get it from <page>TraceResult</page>.</arg> <arg name="id" type="number">Surface property ID. You can get it from <page>Structures/TraceResult</page>.</arg> </args> <rets> <ret name="" type="table">The data or no value if there is no valid surface property at given index. See <page>SurfacePropertyData</page></ret>⤶ See <page>Structures/SurfacePropertyData</page></ret>⤶ </rets> </function>