committed by
GitHub
parent
e8e1c9dd1f
commit
415b7e96fd
@@ -21,11 +21,11 @@ namespace Content.Server.Placement
|
||||
{
|
||||
var entMan = IoCManager.Resolve<IServerEntityManager>();
|
||||
var tBase = entMan.SpawnEntity("TurretBase");
|
||||
tBase.GetComponent<ITransformComponent>().LocalPosition = new GridLocalCoordinates(localPosition, grid);
|
||||
tBase.GetComponent<ITransformComponent>().GridPosition = new GridCoordinates(localPosition, grid);
|
||||
|
||||
var tTop = entMan.SpawnEntity("TurretTopLight");
|
||||
var topTransform = tTop.GetComponent<ITransformComponent>();
|
||||
topTransform.LocalPosition = new GridLocalCoordinates(localPosition, grid);
|
||||
topTransform.GridPosition = new GridCoordinates(localPosition, grid);
|
||||
topTransform.AttachParent(tBase);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user