Glitch
Member
Hi guys 
I have my character with a handgun weapon (type none) in which he fires bullets. Bullets are not set as ammo- as upon full depletion weapon will drop, which is not what I want. Weapon file does not have ammo count nor is it even a pickup weapon, character always will have handgun available via ''weaponframe.
He draws weapon from freespecial with ''weaponframe'' at end of animation, the weapon idle then plays, another freespecial (holster) will then go back to non weapon.
It is in the counting of bullets fired I have a problem:
I require the bullets to be counted via script and set as 15 bullets, upon the total ammo being depleted it should not fire any more bullets rather it should play a misfire/no bullet, then reload-cock animation in which set ammo ammo variable is fulled up. The reload-cock should also be a accessed by a freespecial.
I checked the forum and found @O'Illusionistas script used in his ''Brand'' character, however it is much too complex for me and has many other options/capabilities, more than what I require. All I need is the count, misfire and reload-cock capability.
I am using inline script for now to test, if it works I was going to create script file (with help from someone as I do not know what type script it should be)
I tried using some of it but it does not work as I need, the character fires a shot but upon the next shot he reloads then fires...as if the ammo is 1 and not 15
Post below has images and script as used my me:
@O'Illusionista or others, I would appreciate any assistance.
I have my character with a handgun weapon (type none) in which he fires bullets. Bullets are not set as ammo- as upon full depletion weapon will drop, which is not what I want. Weapon file does not have ammo count nor is it even a pickup weapon, character always will have handgun available via ''weaponframe.
He draws weapon from freespecial with ''weaponframe'' at end of animation, the weapon idle then plays, another freespecial (holster) will then go back to non weapon.
It is in the counting of bullets fired I have a problem:
I require the bullets to be counted via script and set as 15 bullets, upon the total ammo being depleted it should not fire any more bullets rather it should play a misfire/no bullet, then reload-cock animation in which set ammo ammo variable is fulled up. The reload-cock should also be a accessed by a freespecial.
I checked the forum and found @O'Illusionistas script used in his ''Brand'' character, however it is much too complex for me and has many other options/capabilities, more than what I require. All I need is the count, misfire and reload-cock capability.
I am using inline script for now to test, if it works I was going to create script file (with help from someone as I do not know what type script it should be)
I tried using some of it but it does not work as I need, the character fires a shot but upon the next shot he reloads then fires...as if the ammo is 1 and not 15
Post below has images and script as used my me:
@O'Illusionista or others, I would appreciate any assistance.