Entity's coords
Discussion in 'Rust Development' started by Equiment, Feb 22, 2016.
-
Calytic Community Admin Community Mod
Since you mentioned the mining quarry specifically, you could also try..Code:BaseEntity[] entities = UnityEngine.Object.FindObjectsOfType<BaseEntity>(); foreach (BaseEntity entity in entities) { if (entity.name.Contains("someEntityName")) { Debug.Log(entity.transform.position); // something clever here } }
Code:MiningQuarry[] quarries = UnityEngine.Object.FindObjectsOfType<MiningQuarry>(); foreach (MiningQuarry quarry in quarries) { Debug.Log(quarry.transform.position); // something clever here } -
my thanks
