![]() |
Fire rate
I have a simple weapon script which fires a weapon but at the moment every time you press D it fires. How can i make it so theres a larger inteval between firing?
Thanks. |
You could set a flag to true if the weapon is fired and the flag is false. Then, set a timeout to reset the flag.
|
Here is a small example:
NPC Code://#CLIENTSIDE |
Quote:
|
Thanks.
Is there any reason to use function onCreated() {} over if(created) {}? |
Quote:
|
Ah, thanks.
|
| All times are GMT +2. The time now is 12:51 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.