Yes, this is correct. This can be a hidden object that lives on the scene somewhere. This is because each weapon stores it's own settings, values, and timers on the object they are assigned to.
What i also found out is that if extension is bugged with one object (be it player), or you need to shoot with several different weapons at once, you can just create empty object, attach fire bullet behavior to it, put in anywhere in scene, and in events make it fire from player position! its so cool
Great advice! When making the "Fire Bullet" extension, I tried to think of ways to add multiple weapons but I never found a good way to do it. Your idea of using hidden "weapon" objects will work great for this purpose. Thanks for sharing!
Of course! Set the firing timeout very low, bullets per reload to 3, and then set a value for reload duration. You could also disable automatic reloading if the player needs to click a button. Does that do what you want?
@@VictrisGamesI did it, but i thought the Shots for reload was the Magazine, so in this case we don't have a real magazine/clips for our weapon, how we can make a magazine?
Can't make reloading happen at all. not automatically and not with an action. odd. Edit: works for my pistols.... not for all weapons. Gonna have to dig deeper. edit 2: turns out unlimited ammo needs to be enabled for automatic reload to work, at least the way I have it set up.
Victoria heroooo!
These extensions are making GDev so easy 🤪
Oh man this is SO awesome
How do you adjust the settings for multiple weapons? So when you switch weapons it changes to new parameters....im having problems doing this
I think you need to do multiple "weapon" objects so all of them have different parameters
Yes, this is correct. This can be a hidden object that lives on the scene somewhere. This is because each weapon stores it's own settings, values, and timers on the object they are assigned to.
What i also found out is that if extension is bugged with one object (be it player), or you need to shoot with several different weapons at once, you can just create empty object, attach fire bullet behavior to it, put in anywhere in scene, and in events make it fire from player position! its so cool
Great advice! When making the "Fire Bullet" extension, I tried to think of ways to add multiple weapons but I never found a good way to do it. Your idea of using hidden "weapon" objects will work great for this purpose. Thanks for sharing!
Any way to make a burst fire? Just to shot three bullets in succession, one behind another?
Of course! Set the firing timeout very low, bullets per reload to 3, and then set a value for reload duration. You could also disable automatic reloading if the player needs to click a button. Does that do what you want?
@@VictrisGamesI did it, but i thought the Shots for reload was the Magazine, so in this case we don't have a real magazine/clips for our weapon, how we can make a magazine?
I can't find (fire bullet toward a position)
Did you add the Fire Bullet behavior to an object, and then add an instance of that object to the scene?
Can't make reloading happen at all. not automatically and not with an action.
odd. Edit: works for my pistols.... not for all weapons. Gonna have to dig deeper.
edit 2: turns out unlimited ammo needs to be enabled for automatic reload to work, at least the way I have it set up.
That's odd. On my end, the bullet doesn't even fire.