#Adrenaline perk bug for my game

19 messages · Page 1 of 1 (latest)

feral sinew
#

every time i wait the cooldown AKA 20 second, i press Q then i get the perk

#

but everytime i load the game

#

i cant move

still granite
#

[]cb

limpid flameBOT
#

Use codeblocks to send code in a message!

To make a codeblock, surround your code with ``` (3 backticks. Click here to see where the key is)

To use syntax highlighting, add the file extension of the language you wish to highlight (cs for C#, cpp for C++)

For example:
```cs
Console.WriteLine("Hello World");
```

Produces:

Console.WriteLine("Hello World");

To send lengthy code, paste it into https://paste.myst.rs/ and send the link of the paste into chat.

feral sinew
still granite
feral sinew
#

everytime i load the game the movement is off

#

i start hella slow

#

and thats not suppose to happend

still granite
#

Send your code as a code block or pastemyst

feral sinew
#

ok

#
using System.Collections.Generic;
using UnityEngine;

public class Adrienaline1 : MonoBehaviour
{

    public AudioSource audioSource1;
    // public AudioSource audioSource2;

    public float cooldownTime = 5f;
    private float lastUsedTime;


    public PlayerCam cam;
    private void adrienaline1()
    {
        if (Input.GetKeyDown(KeyCode.Q) && Time.time > lastUsedTime + cooldownTime)
        {
            audioSource1.Play();
            cam.DoFov(100f);
            PlayerMovementAdvanced.sprintSpeed = 4f;
            PlayerMovementAdvanced.moveSpeed = 15f;
            PlayerMovementAdvanced.walkSpeed = 15f;
            PlayerMovementAdvanced.slideSpeed = 20f;
            lastUsedTime = Time.time;
        }
    }

    private void Update()
    {
        adrienaline1();
    }

}
still granite
#

Show the Player movement advanced script

feral sinew
#

is a lot

#

LOT

#

idk if you can see it