I want to trace the moment when the player loot box.
Where can I get information about a player who loot box?
Code:void OnPlayerLoot(PlayerLoot lootInventory, BaseEntity targetEntity)
Solved BasePlayer from PlayerLoot
Discussion in 'Rust Development' started by Umlaut, Jun 15, 2015.
-
http://oxidemod.org/plugins/boxlooters.989/
Good place to look... Or even use it since that's what you wanted in the first place. xP -
Code:BasePlayer player = lootInventory.GetComponent("BasePlayer") as BasePlayer;