NamingC
(NamingC)
May 7, 2024, 2:32pm
1
Hi, I’m student in South Korea and, this is my first question.(I’m not good at Eng)
I made mana system which i defined ‘Ether’ with BP(BP_ThirdPersonCharacter).
And, I want to know there are better ways!!! That All, Thank you.
connected at Begin Play event
Auran131
(Auran13)
May 8, 2024, 5:37am
2
no thats about right, you could clean it up by moving the Get/Set CurrentEther inside the function since thats all it will handle anyway
or you can pull the Max out and use it to regenerate anything like health too
2 Likes
3dRaven
(3dRaven)
May 8, 2024, 7:12am
3
You could also pull out the return pin of the timer and promote it to a variable. You could then clear and stop the timer once the mana equals max mana to not waste CPU cycles. Then just restart the timer once the mana drops below max.
2 Likes
NamingC
(NamingC)
May 9, 2024, 12:31am
4
Ah, It must be good way to optimize program!! Thank you for your help!!!
NamingC
(NamingC)
May 9, 2024, 12:33am
5
Oh, I missed that. Thank you for pointing out that!
NamingC
(NamingC)
May 9, 2024, 4:58am
7
One more question I tried to restart the timer after pausing timer, but it doesn’t work.
Can you teach me how to deal this problem?
Auran131
(Auran13)
May 9, 2024, 5:19am
8
thats correct, also to restart the timer you can just call the event again. otherwise show us your code
NamingC
(NamingC)
May 9, 2024, 10:50am
11
I solved!!! Thank you guys!!!
Auran131
(Auran13)
May 9, 2024, 4:54pm
13
Yeah i meant you have to call the 'SetTimer" Event again but as long as you’re happy with the way it works
1 Like
system
(system)
Closed
June 8, 2024, 4:55pm
14
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.