Hey
I'm trying to detect when a player places an item, and then find out who the player was and what item they placed (mainly Tool Cupboard).
I've been trying to use the CanPlace function, but I can't figure out how to get either of these pieces of information from that function (I might just be using the wrong function)
Could anyone help me?
[DOUBLEPOST=1472061113][/DOUBLEPOST]Nevermind - found it myself!
For anyone wondering:
Code:void CanBuild(Planner plan, Construction prefab) { //placer who placed item BasePlayer OwnerPlayer = plan.GetOwnerPlayer(); //item they placed string ItemPlaced = prefab.fullName.ToString(); }
Solved Detecting when a player places an item?
Discussion in 'Rust Development' started by PsychoTea, Aug 24, 2016.

)