92 RoadSurfaceDetection
rsd = RoadSurfaceDetection.ABOVE;
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
Parameters for detecting the surface.
Object ignore
Object to ignore tracing against, SurfaceTraceType.Roadway only.
SurfaceDetectionType type
Type of surface to detect.
RoadSurfaceDetection rsd
See RoadSurfaceDetection, SurfaceTraceType.Roadway only.
vector position
3D position to trace the surface from
UseObjectsMode syncMode
See UseObjectsMode, SurfaceTraceType.Roadway only.
bool includeWater
Include water in the surface detection, will return the water if it is higher than the surface.
Output of surface detection.
bool aboveWater
If water was the returned surface.
float normalZ
Up normal - always set to 1, not necessary to expose.
SurfaceInfo surface
Returned SurfaceInfo, plain pointer.
float normalX
Right normal.
float height
Height position.
Unmanaged surface info handle.
proto string GetSurfaceType()
proto int GetWheelParticleId()
proto float GetRoughness()
proto float GetDustness()
proto float GetThickness()
static proto SurfaceInfo GetByFile(string name)
Warning: O(n) time complexity where n is the total number of loaded surfaces Note: Will load the surf...
proto bool IsPassthrough()
proto string GetEntryName()
static proto SurfaceInfo GetByName(string name)
Warning: O(n) time complexity where n is the total number of loaded surfaces Note: Will load the surf...
proto float GetTransparency()
proto int GetStepParticleId()
See 'ParticleList', if config entry not set, value is 'ParticleList.NONE', if config entry is set but...
proto float GetAudability()
proto string GetSoundEnv()
proto float GetDeflection()
proto float GetBulletPenetrability()
proto int GetLiquidType()
See 'LiquidTypes' in 'constants.c'.
@ Wait
wait for the data to be ready
@ NoWait
do not wait for the data, but refresh caches
@ NoLock
only return the data we have, do not touch any caches (MT safe mode)