Adds SpawnRandomOffsetComponent, which can be used to randomly move a component on map init Co-authored-by: wrexbe <wrexbe@protonmail.com>
9 lines
216 B
C#
9 lines
216 B
C#
namespace Content.Server.Coordinates;
|
|
|
|
[RegisterComponent]
|
|
public sealed class SpawnRandomOffsetComponent : Component
|
|
{
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("offset")] public float Offset = 0.5f;
|
|
}
|