API Referenceglobal
SurfacePrefabCollectionclass
Holds a dictionary of common prefabs associated with a surface
object→SurfacePrefabCollection
Properties3
Showing 3 properties
public Sandbox.GameObject Sandbox.Surface.SurfacePrefabCollection.BluntImpact { get; set; }
A prefab to spawn when this surface is hit by something blunt. The prefab should be spawned facing the same direction as the hit normal. It could include decals and particle effects. It should be parented to the surface that it hit.
public Sandbox.GameObject Sandbox.Surface.SurfacePrefabCollection.BulletImpact { get; set; }
A prefab to spawn when this surface is hit by a bullet. The prefab should be spawned facing the same direction as the hit normal. It should be parented to the surface that it hit and become orphaned if that surface is destroyed.
public Sandbox.GameObject Sandbox.Surface.SurfacePrefabCollection.BulletImpactDecal { get; set; }
A decal prefab to spawn when this surface is hit by a bullet. It should be parented to the surface that it hit and destroyed with it.
No results match this filter.