Get Player Buildings count?
Discussion in 'Rust Development' started by TheMechanical97, Jan 15, 2016.
-
plan.ownerPlayer
-
uh Interesting
-
"There it goes the code that execute when any player Build something But, No way to get the player that does it :S"
If you want to get all the blocks the player owns you will either have to catch and store the data, or use EntityOwner/BuildingOwnersCode:void OnEntityBuilt(Planner plan, GameObject go) { BasePlayer owner = plan.ownerPlayer; // this is the player that placed the part }
