Hi everyone.
Now I need find player who cause airdrop event.
How it posible? becouse CargoPlane from OnAirdrop dont have player
Thanks for help!
Solved Seeing who triggered an airdrop?
Discussion in 'Rust Development' started by not777, Jan 30, 2016.
-
It is connected with OnPlayerLoot
sorry, I understand incorrectlyLast edited by a moderator: Jan 30, 2016 -
You can use OnPlayerLoot to determine who gets the airdrop.
To find who called it, you either use OnItemDeployed or OnWeaponThrown (forgot which one, depends on what the smoke grenade counts as) to find if a smoke signal was used as well as who used it. -
Use OnExplosiveThrown and catch when a player throws a supply signal. Then just log that data. A example of using the method can be found in Airstrike for Rust | Oxide
-