• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

{Solved} I need help with getting usernames

Evanski

Raccoon Lord
Forum Staff
Moderator
I want to be able to fing the accountname of the user using the computer like C://users/billybobjoe
my username on the computer is evan so C://users/evan
I want to be able to have the game find that name and save it as a variable so that it can say Evan all over the place
 

PlayerOne

Member
I want to be able to fing the accountname of the user using the computer like C://users/billybobjoe
my username on the computer is evan so C://users/evan
I want to be able to have the game find that name and save it as a variable so that it can say Evan all over the place
Very simple. Use this function and save it to variable. That's it.

Code:
environment_get_variable("USERNAME")
 
Last edited by a moderator:
Top