Showing entity spawn locations?
Discussion in 'Rust Development' started by Spectrum Modz, Aug 21, 2016.
-
What do you mean by entity spawn locations? When players place a building part?
-
So that when I place a Large Wood Box it shows the spawn location in console.
-
See: Oxide API for Rust
Then get the entity's position and print the x, y and z to console. -
Example of what @Spicy said:
Code:void OnEntitySpawned(BaseNetworkable entity) { Puts($"Entity Variables: [Owner]:{entity.OwnerID} | [Location]:{entity.transform.position}."); }
