Hey, i tried to save the amount of left bullets in a variable
but its not working.
I tried the "Clip amount of Unit" function and the "Ability amount for player" function.
both diddnt work. the "Ability amount for player" function seems to count only 1 most of the time.
i want to switch from Unit A to Unit B (save Unit A ammo amount) and then from Unit B to Unit A (Load ammo amount)
Can someone help me please?
another small question: To replace a unit does trigger a "unit die" trigger?
You might have to do an integer value and set the integer equal to a data type kind of like how you tell a tooltip how much damage to show on the tooltip, you probably have to do it like that only for ammo.
Hey Fishy thank you for your Answer... i dont think this is working, this means i have to save the current amount of ammo into a data field instead of save it right into a variable. I dont get the sense of it.
I have a gun with ammo (ability + counter) now i need to read the current ability charges to save it to a variable. But i dont know how to make this gonna work. I tried everything that makes sense to me (2-3 hours)
I can load the Variable perfect if i preset it to maybe -10 bullets. Then i get 10 Bullets. But i cant save the current amount of charges to my variable TT
You can just save the ammo count to a REAL integer. If you using charges the actions is ability charge info for unit. You should be able to do the reverse but it would be a few more actions that you would have to setup the instances.
Hey, i tried to save the amount of left bullets in a variable but its not working.
I tried the "Clip amount of Unit" function and the "Ability amount for player" function. both diddnt work. the "Ability amount for player" function seems to count only 1 most of the time.
i want to switch from Unit A to Unit B (save Unit A ammo amount) and then from Unit B to Unit A (Load ammo amount)
Can someone help me please?
another small question: To replace a unit does trigger a "unit die" trigger?
@Iamaddicted: Go
You might have to do an integer value and set the integer equal to a data type kind of like how you tell a tooltip how much damage to show on the tooltip, you probably have to do it like that only for ammo.
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
@fishy77: Go
Hey Fishy thank you for your Answer... i dont think this is working, this means i have to save the current amount of ammo into a data field instead of save it right into a variable. I dont get the sense of it.
I have a gun with ammo (ability + counter) now i need to read the current ability charges to save it to a variable. But i dont know how to make this gonna work. I tried everything that makes sense to me (2-3 hours)
I can load the Variable perfect if i preset it to maybe -10 bullets. Then i get 10 Bullets. But i cant save the current amount of charges to my variable TT
Any ideas?
@Iamaddicted: Go
You can just save the ammo count to a REAL integer. If you using charges the actions is ability charge info for unit. You should be able to do the reverse but it would be a few more actions that you would have to setup the instances.
@hobbidude: Go
I love you <3 :D Thanks dude! Its working fine :)