Hello everyone!
Any way I can get info about position where weapon was used to shoot?
Solved Getting shooter's position?
Discussion in 'Rust Development' started by Sanlerus, Feb 27, 2016.
-
Are you saying just shoot, or hit a player and say where the attacker was?
Just Shoot Option:
Code:using ProtoBuf; using System; using System.Collections.Generic; using System.Linq; using UnityEngine;namespace Oxide.Plugins { [Info("Test", "DylanSMR", "1.0.0")] [Description("test")] class Test : RustPlugin { void OnWeaponFired(BaseProjectile projectile, BasePlayer player, ItemModProjectile mod, ProtoBuf.ProjectileShoot projectiles) { PrintWarning("Player| "+player+" | shot his weapon at| "+player.transform.position+" | "); } } }