creating functions

I’m trying to create a function that get the value of pi and divide it by 2. And then get the game time in seconds and divide it by the quotient.

Do you need the exact value of pi or can you just round it to like 3.14?

Hey @ethrealhawk15! Welcome to the forums!

So there’s not a node in blueprint to use the value of Pi. You can manually input as a float as many digits as it allows, and save that to be reused, but you can only get a quick Pi value in C++.

As far as game time in seconds… You’ll have to be clearer. Game time since what point? New game start? Game launch? Since respawn? Most things you’ll have to create a custom timer for, honestly. :slight_smile:

If you could just expound on what you were going for, maybe we can figure you out a solution! Get back to us soon!

Edit: I stand corrected. They’ve added Pi :rofl:

This? :face_in_clouds: