Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static Projectile[] test;
- void Start()
- {
- InvokeRepeating("yield", 0.1f, 4);
- }
- void yield()
- {
- test = UnityEngine.GameObject.FindObjectsOfType<Projectile>();
- }
- void test1()
- {
- foreach (Projectile bullet in test)
- {
- foreach (BasePlayer player in BasePlayer.VisiblePlayerList)
- {
- if (bullet != null)
- {
- if (SilentButDeadly.GetData<bool>() && Input.GetKey(KeyCode.F) && !player.IsLocalPlayer() && !player.IsDead() && !player.IsSleeping())
- bullet.transform.position = player.model.headBone.position;
- }
- }
- }
- }
- void OnGUI()
- {
- if (SilentButDeadly.GetData<bool>())
- test1();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement