Need help with bullets changing and decreasing.

BillyEvsBillyEvs Member, PRO Posts: 14

Hi,

I am having some difficulty in changing the "bullet count" between guns.

I have 3 guns with 3 integr attributes (e.g- pistolbullet 20) so the bullet count will be default set to 20.

and 2 other values for the other guns, when i press an actor i can get it to change to the next weapon and change to the default number of 20. ( so say i have a machine gun out with 100 bullets left, i can weapon to pistol and it changes to 20 bullets left)

the problem is when i change from gun 3 back to gun 1 the bullet left counter is the same as gun 3's value and also the bullet count resets instead of remembering how many was left prior to changing.

( it is table based so a weapon swap is;
attribute game.armorindex = 1
[change attribute- totalbullets to pistolbullets] )

Any ideas,
i know ive explained this awfully, but any ideas welcome.

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited March 2014

    @BillyEvs Sounds like 3 integers is the way to go for the guns and also an integer which changes to the weapons 1-3.

    Demo attached hope it helps.

    Darren.

  • BillyEvsBillyEvs Member, PRO Posts: 14

    @DeepBlueApps‌ thanks for that, that has helped me find alternatives, i don't mind trying a different route so will have a play around with it.

    Thanks again.

  • BillyEvsBillyEvs Member, PRO Posts: 14

    @DeepBlueApps just wanted to let you know ive been able to get it all working flawlessly, was having problems as tables and animation was involved etc.. But thanks to your demo i was able to add a few things and take a few things out. So thanks very much

Sign In or Register to comment.