![]() |
How do you equip a weapon without shooting?
I've tried this quite a bit by myself but it seems like i only got it partially working. How do i make it so when a person equips a weapon, a projectile isn't shot automaticly? so far I've got it to where you can equip it once without shooting. But if you unequip a weapon then requip it again, it'll shoot. Any ideas?
|
Do you mean default weapons and Q menu?
|
No he means like how on Era when you press D to equpt a gun, it ONLY equipts it. It doesnt shoot. Not until you press D again. (Or i tihnk thats whats he meant
|
Set a variable like "this.gunOut" on the first press. If it's false, show the gun. If it's true, shoot. If the weapon changes or the player puts the gun away, set it to false.
|
Quote:
PHP Code:
Edit: Feel free to state anything you see wrong, but i believe i found my own mistake. Quote:
|
Quote:
if you want the fire button to also equip a gun the first time it's pressed, then do something like: PHP Code:
|
Quote:
PHP Code:
|
PHP Code:
You really don't need to use a timeout for this. |
Thanks guys, I'll give it a shot.
Although chris, I'm not exactly familiar with GraalControl yet. or Keyup and KeyDown even though, i have tried using them before. (keydown that is) Quote:
|
| All times are GMT +2. The time now is 08:02 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.