Woodside235 Posted January 13, 2015 Share Posted January 13, 2015 I want to have a weapon with a cooldown. Is there a way to keep track of time passed in scripting? Or is there even a built in cooldown thing? Link to comment https://forums.kleientertainment.com/forums/topic/49062-scripting-weapon-cooldown/ Share on other sites More sharing options...
DarkXero Posted January 13, 2015 Share Posted January 13, 2015 If you have Reign of Giants you can try copying the timer component.It's a timer that you start, and after it ends, a ontimerdone event gets pushed. Link to comment https://forums.kleientertainment.com/forums/topic/49062-scripting-weapon-cooldown/#findComment-601402 Share on other sites More sharing options...
Woodside235 Posted January 14, 2015 Author Share Posted January 14, 2015 If you have Reign of Giants you can try copying the timer component.It's a timer that you start, and after it ends, a ontimerdone event gets pushed. I don't have that DLC. Link to comment https://forums.kleientertainment.com/forums/topic/49062-scripting-weapon-cooldown/#findComment-601673 Share on other sites More sharing options...
DarkXero Posted January 14, 2015 Share Posted January 14, 2015 Then check the firebug component.It's a component with number values that decrease on each update of it. Link to comment https://forums.kleientertainment.com/forums/topic/49062-scripting-weapon-cooldown/#findComment-601680 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now